@ckeditor/ckeditor5-ai 44.0.0-alpha.9 → 44.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/adapters/aiadapter.d.ts +1 -1
- package/dist/adapters/aitextadapter.d.ts +1 -1
- package/dist/adapters/awstextadapter.d.ts +1 -1
- package/dist/adapters/openaitextadapter.d.ts +1 -1
- package/dist/aiassistant.d.ts +1 -1
- package/dist/aiassistantediting.d.ts +1 -1
- package/dist/aiassistantui.d.ts +1 -1
- package/dist/aiconfig.d.ts +1 -1
- package/dist/augmentation.d.ts +1 -1
- package/dist/index.css +7 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/legacyerrors.d.ts +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/aiassistantcontroller.d.ts +1 -1
- package/dist/ui/form/aiformcontentarea.d.ts +1 -1
- package/dist/ui/form/aiformerrorview.d.ts +1 -1
- package/dist/ui/form/aiformpromptview.d.ts +1 -1
- package/dist/ui/form/aiformtoolbarview.d.ts +1 -1
- package/dist/ui/form/aiformview.d.ts +1 -1
- package/dist/ui/form/aihistorylistitemview.d.ts +1 -1
- package/dist/ui/form/aihistorylistview.d.ts +1 -1
- package/dist/ui/form/prompthistory.d.ts +1 -1
- package/dist/ui/showaiassistantcommand.d.ts +1 -1
- package/dist/utils/common-translations.d.ts +1 -1
- package/dist/utils/normalizecommandsconfig.d.ts +1 -1
- package/package.json +8 -8
- package/src/adapters/aiadapter.d.ts +1 -1
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.d.ts +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.d.ts +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.d.ts +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.d.ts +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.d.ts +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.d.ts +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/aiconfig.d.ts +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.d.ts +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.d.ts +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.d.ts +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.d.ts +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.d.ts +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.d.ts +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.d.ts +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.d.ts +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.d.ts +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.d.ts +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.d.ts +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.d.ts +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
- package/theme/ai-dropdown.css +1 -1
- package/theme/ai-form.css +1 -1
- package/theme/ai.css +1 -1
package/build/ai.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var e={369:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(r),s=Math.max(o,i),a=0,c=e.map([t,r],(function(t){var r=s-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(a=s-Math.min(o,i)),s-=1;s>=a;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var o=e[r];if(t(o,r))return o}},e.assign=function(e){for(var t,r,n=e,o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var a=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=i.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},i=r(18);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],(r=null)&&s(t.prototype,r),n&&s(t,n),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),o=c(r(93)),i=c(r(94)),s=c(r(95)),a=c(r(17));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,o={},i=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(o[t]=s,i+=1):"object"==typeof s&&(r[t]=s,n+=1)})),n>0){var s=Object.keys(r),c=a.default.find(s,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var d=a.default.find(s,(function(e){return t.isPlatform(e)}));if(d){var l=this.satisfies(r[d]);if(void 0!==l)return l}}if(i>0){var g=Object.keys(o),h=a.default.find(g,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(o[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),o=a.default.getBrowserTypeByAlias(n);return t&&o&&(n=o.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(o,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},r=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=o.default.getMacOSVersionName(t),n={name:i.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=o.default.getAndroidVersionName(t),n={name:i.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:i.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},r=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},r=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},r=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},r=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})},142:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck.ck-aria-description{display:none}",""]);const a=s},507:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content pre>code.ck-suggestion-marker-formatBlock{box-shadow:-7px 0 0 0 #ededed,-10px 0 0 0 var(--ck-color-suggestion-marker-format-border);display:block}.ck-content pre>code.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 #ededed,-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}",""]);const a=s},967:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},258:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image img{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image,.ck-content .ck-suggestion-marker-insertion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},906:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.media .ck-media__wrapper{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-comment-marker.ck-widget.ck-merge-field,.ck-content .ck-suggestion-marker.ck-widget.ck-merge-field{border-width:2px;border-left:none;border-right:none;padding-bottom:0;padding-top:0}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom-color:var(--ck-color-suggestion-marker-deletion-border);border-top-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field :not(.ck-merge-field__affix),.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-merge-field_with-value,.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-merge-field_with-warning{text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-marker-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field{background-color:var(--ck-color-suggestion-marker-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-marker-insertion-background-active)}.ck-content .ck-comment-marker.ck-widget.ck-merge-field{background:var(--ck-color-comment-marker)}.ck-content .ck-comment-marker.ck-widget.ck-merge-field.ck-comment-marker--active{background:var(--ck-color-comment-marker-active)}.ck-content span.ck-comment-marker:has(+.ck-comment-marker.ck-widget.ck-merge-field),.ck-content span.ck-suggestion-marker:has(+.ck-suggestion-marker.ck-widget.ck-merge-field){margin-right:-1px;padding-right:1px}",""]);const a=s},751:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},901:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-color-suggestion-widget-th-insertion-background:rgba(102,229,119,.12);--ck-color-suggestion-widget-th-insertion-background-active:rgba(37,218,61,.14);--ck-color-suggestion-widget-th-deletion-background:rgba(229,102,134,.14);--ck-color-suggestion-widget-th-deletion-background-active:rgba(196,33,74,.16)}.ck-content figure.table .ck-suggestion-marker-formatBlock{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content figure.table .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.table{border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table{border-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .table th.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-th-insertion-background)}.ck-content .table th.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-th-deletion-background);text-decoration:none}.ck-content .table th.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .table td.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table td.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);text-decoration:none}.ck-content .table td.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-formatBlock,.ck-content .table td.ck-suggestion-marker-formatInline,.ck-content .table th.ck-suggestion-marker-formatBlock,.ck-content .table th.ck-suggestion-marker-formatInline{background-color:var(--ck-color-suggestion-widget-format-background);box-shadow:none}.ck-content .table td.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table td.ck-suggestion-marker-formatInline.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatInline.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-format-background-active);box-shadow:none}",""]);const a=s},961:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-color-comment-box-border:#f2de02;--ck-color-suggestion-box-deletion-border:#d85a79;--ck-color-suggestion-box-insertion-border:#5ad86b;--ck-color-suggestion-box-format-border:#5ac1d8}.ck .ck-suggestion{border-top-left-radius:var(--ck-border-radius)}.ck .ck-suggestion:focus{background:var(--ck-color-button-default-hover-background);outline:none}.ck .ck-annotation{border-left:3px solid transparent}.ck .ck-suggestion--disabled-comments .ck-annotation{min-height:80px}.ck .ck-comment,.ck .ck-comment__input-container,.ck .ck-thread__comment-count,.ck .ck-thread__header{border-left:3px solid var(--ck-color-comment-box-border)}.ck .ck-suggestion-insertion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-replace .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-format .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-format-border)}.ck .ck-suggestion-wrapper{border-radius:0;overflow:hidden}.ck .ck-suggestion-wrapper.ck-rounded-corners,.ck-rounded-corners .ck .ck-suggestion-wrapper{border-radius:var(--ck-border-radius)}.ck .ck-suggestion-wrapper:focus{box-shadow:0 0 0 4px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring)}.ck-balloon-panel:has(.ck-suggestion-wrapper:focus){border:var(--ck-focus-ring);box-shadow:var(--ck-drop-shadow),var(--ck-focus-outer-shadow);outline:none}.ck .ck-suggestion-type{font-weight:700}.ck .ck-suggestion-color{border-radius:14px;box-shadow:0 0 0 1px #454545;display:inline-block;height:14px;margin:0 5px;vertical-align:text-bottom;width:14px}.ck .ck-suggestion-insertion .ck-comment,.ck .ck-suggestion-insertion .ck-comment__input-container,.ck .ck-suggestion-insertion .ck-thread__comment-count,.ck .ck-suggestion-replace .ck-comment,.ck .ck-suggestion-replace .ck-comment__input-container,.ck .ck-suggestion-replace .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-comment,.ck .ck-suggestion-deletion .ck-comment__input-container,.ck .ck-suggestion-deletion .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-format .ck-comment,.ck .ck-suggestion-format .ck-comment__input-container,.ck .ck-suggestion-format .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-format-border)}",""]);const a=s},163:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,':root{--ck-color-suggestion-marker-insertion-border:rgba(30,174,49,.35);--ck-color-suggestion-marker-insertion-border-active:rgba(18,109,31,.5);--ck-color-suggestion-marker-insertion-background:rgba(102,229,119,.35);--ck-color-suggestion-marker-insertion-background-active:rgba(37,218,61,.5);--ck-color-suggestion-marker-deletion-border:rgba(174,30,66,.35);--ck-color-suggestion-marker-deletion-border-active:rgba(109,18,41,.5);--ck-color-suggestion-marker-deletion-background:rgba(229,102,134,.35);--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.5);--ck-color-suggestion-marker-deletion-stroke:rgba(87,15,33,.5);--ck-color-suggestion-marker-format-border:#99d7e6;--ck-color-suggestion-marker-format-border-active:#5cc0d6;--ck-color-suggestion-widget-insertion-background:rgba(102,229,119,.05);--ck-color-suggestion-widget-insertion-background-active:rgba(37,218,61,.07);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.05);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.07);--ck-color-suggestion-widget-format-background:rgba(10,160,194,.09);--ck-color-suggestion-widget-format-background-active:rgba(10,160,194,.16)}.ck-content .ck-suggestion-marker-insertion{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-insertion-border);text-decoration:none}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-merge:after{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);color:var(--ck-color-suggestion-marker-deletion-stroke);content:"¶";text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke)}.ck-content .ck-suggestion-marker-merge.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-split:after{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border);color:var(--ck-color-suggestion-marker-insertion-border);content:"¶"}.ck-content .ck-suggestion-marker-split.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-formatInline{border-bottom:3px solid var(--ck-color-suggestion-marker-format-border);border-top:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatInline.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatBlock{background:none;border:0;box-shadow:-7px 0 0 0 var(--ck-color-base-background),-10px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 var(--ck-color-base-background),-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content ol .ck-suggestion-marker-formatBlock,.ck-content ul .ck-suggestion-marker-formatBlock{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content ol .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content ul .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}',""]);const a=s},332:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-user-colors--0:#6d78e8;--ck-user-colors--0-alpha:rgba(109,120,232,.15);--ck-user-colors--1:#007a6c;--ck-user-colors--1-alpha:rgba(0,122,108,.15);--ck-user-colors--2:#ba4545;--ck-user-colors--2-alpha:rgba(186,69,69,.15);--ck-user-colors--3:#5635b1;--ck-user-colors--3-alpha:rgba(86,53,177,.15);--ck-user-colors--4:#548a2e;--ck-user-colors--4-alpha:rgba(84,138,46,.15);--ck-user-colors--5:#c3185d;--ck-user-colors--5-alpha:rgba(195,24,93,.15);--ck-user-colors--6:#ea4343;--ck-user-colors--6-alpha:rgba(234,67,67,.15);--ck-user-colors--7:#0bc3d0;--ck-user-colors--7-alpha:rgba(11,195,208,.15);--ck-user-dot-size:6px}.ck .ck-user__color--0{color:var(--ck-user-colors--0)}.ck .ck-user__bg-color--0{background-color:var(--ck-user-colors--0)}.ck .ck-user__selection--0{background-color:var(--ck-user-colors--0-alpha)}.ck .ck-user__selection--0.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--0)}.ck .ck-user__marker--0,.ck .ck-user__marker--0 .ck-user__marker-dot,.ck .ck-user__marker--0 .ck-user__marker-dot::selection,.ck .ck-user__marker--0 .ck-user__marker-tooltip,.ck .ck-user__marker--0 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--0::selection{background-color:var(--ck-user-colors--0)}.ck .ck-user__marker--0 .ck-user__marker-line{border:1px solid var(--ck-user-colors--0)}.ck .ck-user__color--1{color:var(--ck-user-colors--1)}.ck .ck-user__bg-color--1{background-color:var(--ck-user-colors--1)}.ck .ck-user__selection--1{background-color:var(--ck-user-colors--1-alpha)}.ck .ck-user__selection--1.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--1)}.ck .ck-user__marker--1,.ck .ck-user__marker--1 .ck-user__marker-dot,.ck .ck-user__marker--1 .ck-user__marker-dot::selection,.ck .ck-user__marker--1 .ck-user__marker-tooltip,.ck .ck-user__marker--1 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--1::selection{background-color:var(--ck-user-colors--1)}.ck .ck-user__marker--1 .ck-user__marker-line{border:1px solid var(--ck-user-colors--1)}.ck .ck-user__color--2{color:var(--ck-user-colors--2)}.ck .ck-user__bg-color--2{background-color:var(--ck-user-colors--2)}.ck .ck-user__selection--2{background-color:var(--ck-user-colors--2-alpha)}.ck .ck-user__selection--2.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--2)}.ck .ck-user__marker--2,.ck .ck-user__marker--2 .ck-user__marker-dot,.ck .ck-user__marker--2 .ck-user__marker-dot::selection,.ck .ck-user__marker--2 .ck-user__marker-tooltip,.ck .ck-user__marker--2 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--2::selection{background-color:var(--ck-user-colors--2)}.ck .ck-user__marker--2 .ck-user__marker-line{border:1px solid var(--ck-user-colors--2)}.ck .ck-user__color--3{color:var(--ck-user-colors--3)}.ck .ck-user__bg-color--3{background-color:var(--ck-user-colors--3)}.ck .ck-user__selection--3{background-color:var(--ck-user-colors--3-alpha)}.ck .ck-user__selection--3.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--3)}.ck .ck-user__marker--3,.ck .ck-user__marker--3 .ck-user__marker-dot,.ck .ck-user__marker--3 .ck-user__marker-dot::selection,.ck .ck-user__marker--3 .ck-user__marker-tooltip,.ck .ck-user__marker--3 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--3::selection{background-color:var(--ck-user-colors--3)}.ck .ck-user__marker--3 .ck-user__marker-line{border:1px solid var(--ck-user-colors--3)}.ck .ck-user__color--4{color:var(--ck-user-colors--4)}.ck .ck-user__bg-color--4{background-color:var(--ck-user-colors--4)}.ck .ck-user__selection--4{background-color:var(--ck-user-colors--4-alpha)}.ck .ck-user__selection--4.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--4)}.ck .ck-user__marker--4,.ck .ck-user__marker--4 .ck-user__marker-dot,.ck .ck-user__marker--4 .ck-user__marker-dot::selection,.ck .ck-user__marker--4 .ck-user__marker-tooltip,.ck .ck-user__marker--4 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--4::selection{background-color:var(--ck-user-colors--4)}.ck .ck-user__marker--4 .ck-user__marker-line{border:1px solid var(--ck-user-colors--4)}.ck .ck-user__color--5{color:var(--ck-user-colors--5)}.ck .ck-user__bg-color--5{background-color:var(--ck-user-colors--5)}.ck .ck-user__selection--5{background-color:var(--ck-user-colors--5-alpha)}.ck .ck-user__selection--5.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--5)}.ck .ck-user__marker--5,.ck .ck-user__marker--5 .ck-user__marker-dot,.ck .ck-user__marker--5 .ck-user__marker-dot::selection,.ck .ck-user__marker--5 .ck-user__marker-tooltip,.ck .ck-user__marker--5 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--5::selection{background-color:var(--ck-user-colors--5)}.ck .ck-user__marker--5 .ck-user__marker-line{border:1px solid var(--ck-user-colors--5)}.ck .ck-user__color--6{color:var(--ck-user-colors--6)}.ck .ck-user__bg-color--6{background-color:var(--ck-user-colors--6)}.ck .ck-user__selection--6{background-color:var(--ck-user-colors--6-alpha)}.ck .ck-user__selection--6.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--6)}.ck .ck-user__marker--6,.ck .ck-user__marker--6 .ck-user__marker-dot,.ck .ck-user__marker--6 .ck-user__marker-dot::selection,.ck .ck-user__marker--6 .ck-user__marker-tooltip,.ck .ck-user__marker--6 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--6::selection{background-color:var(--ck-user-colors--6)}.ck .ck-user__marker--6 .ck-user__marker-line{border:1px solid var(--ck-user-colors--6)}.ck .ck-user__color--7{color:var(--ck-user-colors--7)}.ck .ck-user__bg-color--7{background-color:var(--ck-user-colors--7)}.ck .ck-user__selection--7{background-color:var(--ck-user-colors--7-alpha)}.ck .ck-user__selection--7.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--7)}.ck .ck-user__marker--7,.ck .ck-user__marker--7 .ck-user__marker-dot,.ck .ck-user__marker--7 .ck-user__marker-dot::selection,.ck .ck-user__marker--7 .ck-user__marker-tooltip,.ck .ck-user__marker--7 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--7::selection{background-color:var(--ck-user-colors--7)}.ck .ck-user__marker--7 .ck-user__marker-line{border:1px solid var(--ck-user-colors--7)}",""]);const a=s},533:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(168),o=r.n(n),i=r(433),s=r.n(i),a=r(220),c=r.n(a),u=new URL(r(182),r.b),d=s()(o()),l=c()(u);d.push([e.id,`:root{--ck-user-avatar-size:40px;--ck-user-avatar-background:#3670ab;--ck-user-avatar-color:#fff;--ck-user-me-border-color:#fff}.ck.ck-user{align-items:center;background-color:var(--ck-user-avatar-background);border-radius:50%;box-sizing:border-box;display:flex;height:var(--ck-user-avatar-size);justify-content:center;line-height:100%;margin:2px;min-height:var(--ck-user-avatar-size);min-width:var(--ck-user-avatar-size);position:relative;width:var(--ck-user-avatar-size)}.ck.ck-user.ck-user_me{border:2px solid var(--ck-user-me-border-color);outline:2px solid var(--ck-user-avatar-background)}.ck.ck-user__name{color:var(--ck-user-avatar-color);cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-user__name.ck-user__name--hidden{display:none}.ck.ck-user__img{background-color:var(--ck-user-avatar-background);background-position:50%;background-repeat:no-repeat;background-size:cover;border:none;border-radius:50%;display:none;height:100%;width:100%}.ck.ck-user__img.ck-user__anonymous{background-image:url(${l});display:block}.ck.ck-user__img.ck-user__anonymous+.ck-user__name{display:none}.ck.ck-user__img.ck-user__avatar{background-color:#fff;display:block}.ck.ck-user__img.ck-user__img--hidden{display:none}.ck.ck-user__notification{align-items:center;background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);border-radius:50%;box-sizing:content-box;display:flex;height:15px;justify-content:center;overflow:hidden;position:absolute;right:-7px;top:-8px;transform:translateZ(0);width:15px}.ck.ck-user__notification .ck-user__icon{background:var(--ck-color-base-background);color:var(--ck-color-annotation-info);height:19px;max-height:19px;max-width:19px;min-height:19px;min-width:19px;width:19px}`,""]);const g=d},181:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-dropdown-view-width:250px;--ck-ai-dropdown-view-list-max-height:250px}.ck.ck-ai-commands-search{width:var(--ck-ai-dropdown-view-width)}.ck.ck-ai-commands-search>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-ai-commands-search>.ck-labeled-field-view .ck-input{min-width:unset}.ck.ck-ai-commands-search>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-ai-commands-search>.ck-search__results>.ck-list{max-height:var(--ck-ai-dropdown-view-list-max-height);overflow:auto}",""]);const a=s},676:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-form-view-width:600px;--ck-ai-form-content-height:175px;--ck-ai-form-content-background:#fafafa;--ck-ai-form-history-font-size:.9em;--ck-ai-form-error-background:var(--ck-color-light-red)}.ck .ck-ai-form{max-width:100%;width:var(--ck-ai-form-view-width)}@media screen and (max-width:600px){.ck .ck-ai-form{--ck-ai-form-view-width:100vw}}.ck .ck-ai-form .ck-ai-form-content{padding:var(--ck-spacing-large);width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-input{width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper{border:1px solid var(--ck-color-base-border);border-radius:2px;max-height:var(--ck-ai-form-content-height);overflow-y:auto;width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area{background-color:var(--ck-ai-form-content-background);display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area.ck-ai-form__content-area--processing{--ck-color-text:var(--ck-color-input-disabled-text);background-color:var(--ck-color-input-disabled-background)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{box-sizing:content-box;min-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base));padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);white-space:normal;width:100%}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-right:0}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-left:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field>*{color:inherit;white-space:normal}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button-wrapper{display:flex;flex-direction:column-reverse;padding-left:2px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button{bottom:1px;min-height:unset;min-width:unset;padding:4px;position:sticky;right:1px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button svg{--ck-icon-size:16px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button.ck-ai-form__copy-button--copied{color:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__toolbar{border:none;margin-bottom:calc(var(--ck-spacing-medium)*2);margin-top:var(--ck-spacing-medium);padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader{align-items:center;display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader .ck-spinner{box-sizing:border-box}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete{display:flex;justify-content:space-between}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view{flex-grow:1}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{border-color:var(--ck-ai-form-submit-button-border-color);color:var(--ck-ai-form-submit-button-text-color)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-left:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-right:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit.ck-disabled{border-color:var(--ck-ai-form-submit-button-disabled-border-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{bottom:var(--ck-spacing-small);font-size:var(--ck-font-size-tiny);min-height:unset;min-width:unset;padding:4px;position:absolute;top:var(--ck-spacing-small)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{left:var(--ck-spacing-medium)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-right:30px}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-left:30px}@media screen and (max-width:600px){.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{--ck-input-width:auto}}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto;grid-column-gap:0;grid-row-gap:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>span{grid-area:1/1/2/2}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button{background:none;font-size:var(--ck-ai-form-history-font-size);grid-area:1/2/2/3;justify-self:start;margin:var(--ck-spacing-medium) 0 0;min-height:auto;padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label{line-height:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label:hover{text-decoration:underline}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list{grid-area:2/1/3/3}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list .ck-list__item .ck-button .ck-button__label{font-size:var(--ck-ai-form-history-font-size);line-height:var(--ck-line-height-base);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck .ck-ai-form .ck-ai-form__error{align-items:center;background-color:var(--ck-ai-form-error-background);border-radius:2px;color:var(--ck-color-base-text);display:flex;justify-content:center;margin-bottom:var(--ck-spacing-medium);padding:var(--ck-spacing-medium)}",""]);const a=s},379:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-form-submit-button-text-color:var(--ck-color-text);--ck-ai-form-submit-button-border-color:transparent;--ck-ai-form-submit-button-disabled-border-color:transparent;--ck-ai-toolbar-button-hover-color:var(--ck-color-text);--ck-color-ai-selection:rgba(31,176,255,.3)}.ck-ai-assistant-ui_theme{--ck-color-button-default-hover-background:#f3ecff;--ck-color-button-default-active-background:#f3ecff;--ck-color-button-on-background:#f3ecff;--ck-color-button-on-hover-background:#f3ecff;--ck-color-button-on-active-background:#f3ecff;--ck-color-button-on-disabled-background:#f3ecff;--ck-color-button-on-color:#743ccd;--ck-color-button-action-background:#743ccd;--ck-color-button-action-hover-background:#6c34c9;--ck-color-button-action-active-background:#6c34c9;--ck-color-button-action-disabled-background:#ba9de6;--ck-color-list-button-hover-background:#f3ecff;--ck-ai-form-content-background:#f9f9f9;--ck-ai-form-submit-button-text-color:var(--ck-color-button-on-color);--ck-ai-form-submit-button-border-color:var(--ck-color-button-action-background);--ck-ai-form-submit-button-disabled-border-color:var(--ck-color-button-action-disabled-background);--ck-ai-toolbar-button-hover-color:var(--ck-color-button-on-color);--ck-color-ai-selection:#e2d6f5}.ck-ai-assistant-button:hover,.ck-ai-commands-dropdown>.ck-button:hover{color:var(--ck-ai-toolbar-button-hover-color)}.ck span.ck-fake-ai-selection{background:var(--ck-color-ai-selection)}.ck .ck-widget.ck-fake-ai-selection{outline-color:var(--ck-color-ai-selection)}.ck span.ck-fake-ai-selection-candidate{background:var(--ck-color-ai-selection)}.ck .ck-fake-ai-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}.ck.ck-content.ck-ai-form__content-field h2{font-size:1.3em}.ck.ck-content.ck-ai-form__content-field h3{font-size:1.2em}.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6{font-size:1.1em}.ck.ck-content.ck-ai-form__content-field h2,.ck.ck-content.ck-ai-form__content-field h3,.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6,.ck.ck-content.ck-ai-form__content-field ol,.ck.ck-content.ck-ai-form__content-field p,.ck.ck-content.ck-ai-form__content-field ul{line-height:1.7em;margin-block-end:.5em;margin-block-start:.5em}.ck.ck-content.ck-ai-form__content-field>:first-child{margin-top:0}.ck.ck-content.ck-ai-form__content-field>:last-child{margin-bottom:0}",""]);const a=s},433:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var u=0;u<e.length;u++){var d=[].concat(e[u]);n&&s[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},220:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},168:e=>{"use strict";e.exports=function(e){return e[1]}},673:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},s=[],a=0;a<e.length;a++){var c=e[a],u=n.base?c[0]+n.base:c[0],d=i[u]||0,l="".concat(u," ").concat(d);i[u]=d+1;var g=r(l),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==g)t[g].references++,t[g].updater(h);else{var p=o(h,n);n.byIndex=a,t.splice(a,0,{identifier:l,updater:p,references:1})}s.push(l)}return s}function o(e,t){var r=t.domAPI(t);r.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=r(i[s]);t[a].references--}for(var c=n(e,o),u=0;u<i.length;u++){var d=r(i[u]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}i=c}}},262:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},357:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},667:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])}))}},545:e=>{"use strict";var t,r=(t=[],function(e,r){return t[e]=r,t.filter(Boolean).join("\n")});function n(e,t,n,o){var i;if(n)i="";else{i="",o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,s&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}")}if(e.styleSheet)e.styleSheet.cssText=r(t,i);else{var a=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(a,c[t]):e.appendChild(a)}}var o={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=o.singletonCounter++,r=o.singleton||(o.singleton=e.insertStyleElement(e));return{update:function(e){n(r,t,!1,e)},remove:function(e){n(r,t,!0,e)}}}},182:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath fill=%27%23FFF%27 d=%27M9.8 20H2c0-5.7 5-5.7 6-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5 0-2.8 2-5.2 4.3-5.2S14 4.4 14 7.3c0 2.2-1 4-2.6 5l.2.6c1.2 1.3 6 1.4 6 7H9.8z%27/%3E%3C/svg%3E"},331:(e,t,r)=>{e.exports=r(237)("./src/clipboard.js")},782:(e,t,r)=>{e.exports=r(237)("./src/core.js")},783:(e,t,r)=>{e.exports=r(237)("./src/engine.js")},311:(e,t,r)=>{e.exports=r(237)("./src/ui.js")},584:(e,t,r)=>{e.exports=r(237)("./src/utils.js")},237:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.b=document.baseURI||self.location.href;var n={};(()=>{"use strict";r.r(n),r.d(n,{AIAdapter:()=>Z,AIAssistant:()=>Nt,AIRequestError:()=>Q,AITextAdapter:()=>jt,AWSTextAdapter:()=>qc,OpenAITextAdapter:()=>zt});var e=r(782),t=r(584),o=r(311);e.ContextPlugin;var i=r(673),s=r.n(i),a=r(545),c=r.n(a),u=r(262),d=r.n(u),l=r(667),g=r.n(l),h=r(357),p=r.n(h),f=r(332),m={attributes:{"data-cke":!0}};m.setAttributes=g(),m.insert=d().bind(null,"head"),m.domAPI=c(),m.insertStyleElement=p();s()(f.A,m);f.A&&f.A.locals&&f.A.locals;e.ContextPlugin;var k=r(533),b={attributes:{"data-cke":!0}};b.setAttributes=g(),b.insert=d().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=p();s()(k.A,b);k.A&&k.A.locals&&k.A.locals;o.View;o.View;o.View;var v=r(961),w={attributes:{"data-cke":!0}};w.setAttributes=g(),w.insert=d().bind(null,"head"),w.domAPI=c(),w.insertStyleElement=p();s()(v.A,w);v.A&&v.A.locals&&v.A.locals;var y=r(163),_={attributes:{"data-cke":!0}};_.setAttributes=g(),_.insert=d().bind(null,"head"),_.domAPI=c(),_.insertStyleElement=p();s()(y.A,_);y.A&&y.A.locals&&y.A.locals;var S=r(142),A={attributes:{"data-cke":!0}};A.setAttributes=g(),A.insert=d().bind(null,"head"),A.domAPI=c(),A.insertStyleElement=p();s()(S.A,A);S.A&&S.A.locals&&S.A.locals;var x=r(258),E={attributes:{"data-cke":!0}};E.setAttributes=g(),E.insert=d().bind(null,"head"),E.domAPI=c(),E.insertStyleElement=p();s()(x.A,E);x.A&&x.A.locals&&x.A.locals;var I=r(967),R={attributes:{"data-cke":!0}};R.setAttributes=g(),R.insert=d().bind(null,"head"),R.domAPI=c(),R.insertStyleElement=p();s()(I.A,R);I.A&&I.A.locals&&I.A.locals;var P=r(906),M={attributes:{"data-cke":!0}};M.setAttributes=g(),M.insert=d().bind(null,"head"),M.domAPI=c(),M.insertStyleElement=p();s()(P.A,M);P.A&&P.A.locals&&P.A.locals;var C=r(938),T={attributes:{"data-cke":!0}};T.setAttributes=g(),T.insert=d().bind(null,"head"),T.domAPI=c(),T.insertStyleElement=p();s()(C.A,T);C.A&&C.A.locals&&C.A.locals;var O=r(751),L={attributes:{"data-cke":!0}};L.setAttributes=g(),L.insert=d().bind(null,"head"),L.domAPI=c(),L.insertStyleElement=p();s()(O.A,L);O.A&&O.A.locals&&O.A.locals;var N=r(901),$={attributes:{"data-cke":!0}};$.setAttributes=g(),$.insert=d().bind(null,"head"),$.domAPI=c(),$.insertStyleElement=p();s()(N.A,$);N.A&&N.A.locals&&N.A.locals;var B=r(507),U={attributes:{"data-cke":!0}};U.setAttributes=g(),U.insert=d().bind(null,"head"),U.domAPI=c(),U.insertStyleElement=p();s()(B.A,U);B.A&&B.A.locals&&B.A.locals;const D={paintRoller:'<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3Z"/><path d="M16 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 16 6.449V3.25Z"/></svg>\n',robotPencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.61 2.66a1.406 1.406 0 1 0-1.407 0v.891H3.28a2.11 2.11 0 0 0-2.11 2.11v10.312a2.11 2.11 0 0 0 2.11 2.109h5.684l-.054-1.157.18-.25H3.28a.703.703 0 0 1-.703-.702V5.66c0-.389.315-.704.703-.704h11.25c.388 0 .703.315.703.704v2.484l.358-.497a2.492 2.492 0 0 1 1.048-.84V5.66a2.11 2.11 0 0 0-2.11-2.11H9.61v-.89Z"/><path d="M5.625 10.817c.518 0 .937-.63.937-1.407 0-.776-.42-1.406-.937-1.406-.518 0-.938.63-.938 1.406 0 .777.42 1.407.938 1.407Z"/><path d="M13.125 9.41c0 .777-.42 1.407-.938 1.407s-.937-.63-.937-1.407c0-.776.42-1.406.937-1.406.518 0 .938.63.938 1.406Z"/><path d="M.937 8.004A.937.937 0 0 0 0 8.942v1.875c0 .517.42.937.937.937v-3.75Z"/><path d="M6.128 12.51a.782.782 0 0 1 1.085.216c.272.408.907.707 1.693.707s1.421-.3 1.693-.707a.782.782 0 0 1 1.302.868c-.666 1-1.906 1.403-2.995 1.403-1.089 0-2.329-.404-2.995-1.403a.782.782 0 0 1 .217-1.085Z"/><path d="m16.987 8.91-.622.864 2.879 2.074.622-.864a.71.71 0 0 0-.161-.99l-1.728-1.245a.71.71 0 0 0-.99.161Z"/><path d="M11.635 19.951a.355.355 0 0 1-.449-.31l-.214-2.38 4.978-6.911 2.88 2.074-4.978 6.91-2.217.617Z"/></svg>',tableOfContents:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 19a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8.022a6.47 6.47 0 0 0-1.5-.709V2a.5.5 0 0 0-.5-.5H3a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h6.313c.173.534.412 1.037.709 1.5H3Z"/><path d="M9.174 14a6.489 6.489 0 0 0-.155 1H6v-1h3.174Z"/><path d="M10.022 12c-.202.316-.378.65-.524 1H4v-1h6.022Z"/><path d="M12.034 10c-.448.283-.86.62-1.224 1H6v-1h6.034Z"/><path d="M12 4v1H4V4h8Z"/><path d="M14 7V6H6v1h8Z"/><path d="M15 9V8H7v1h8Z"/><path clip-rule="evenodd" d="M20 15.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM15.5 13a.5.5 0 0 0-.5.5V15h-1.5a.5.5 0 0 0 0 1H15v1.5a.5.5 0 0 0 1 0V16h1.5a.5.5 0 0 0 0-1H16v-1.5a.5.5 0 0 0-.5-.5Z"/></svg>\n',template:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8 0H3a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2ZM2.5 2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V2Z"/><path clip-rule="evenodd" d="M13 0h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5h-5Z"/><path clip-rule="evenodd" d="M13 10h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-5Z"/></svg>',caseChange:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.789 3 0 17h1.664l1.664-4.027h6.797l.227.548c.046-.172.112-.352.209-.545.217-.436.556-.609.898-.798L7.664 3H5.79Zm.938 1.758 2.777 6.715H3.949l2.778-6.715Z"/><path d="M15.956 7.5c-1.584-.02-3.226.824-3.843 2.882l1.495.106c.904-2.082 4.594-2.13 4.375.534-3.245 1.024-4.838.117-6.082 2.62-.208.418-.17 1.57.54 2.397.71.826 2.014 1.149 3.409.85 1.395-.299 2.24-1.386 2.24-1.386L18.205 17h1.493l-.059-1.72-.056-5.274C19.51 8.612 17.75 7.524 15.956 7.5Zm2.027 4.696s.641 2.453-1.528 3.27c-3.376 1.269-4.188-2.141-1.775-2.638 1.704-.352 1.873-.25 3.303-.632Z"/></svg>'};function F(e,t){const r=(0,t.t)("Other");return e.length?"groupId"in e[0]?e:[{groupId:"_ungrouppedCommands",groupLabel:r,order:1/0,commands:e}]:[{groupId:"_ungrouppedCommands",groupLabel:r,order:1/0,commands:[]}]}const j=H;function H(e,t){const r=z();return(H=function(e,t){return r[e-=435]})(e,t)}!function(e){const t=H,r=e();for(;;)try{if(160544===parseInt(t(481))/1+parseInt(t(500))/2*(parseInt(t(484))/3)+parseInt(t(467))/4+-parseInt(t(458))/5+parseInt(t(506))/6*(-parseInt(t(443))/7)+parseInt(t(435))/8+-parseInt(t(457))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(z);const q=j(492);class V extends e.Plugin{static get[j(454)](){return j(503)}static get[j(477)](){return!0}static get[j(488)](){return!0}[j(497)](){const e=j,{editor:t}=this,r=[e(475)];t[e(494)][e(471)](e(455))&&r[e(483)](e(447)),t[e(476)][e(452)](e(499))[e(445)]({model:q,view:{classes:r,priority:12}}),t[e(476)][e(452)](e(499))[e(464)]({model:q,view:(t,{writer:r})=>{const n=e;if(!t[n(491)][n(468)])return null;const o=r[n(485)](n(504));return r[n(461)]([n(475),n(487)],o),o}})}[j(450)](){!async function(e){const r=f([120,97,105,56,84,111,102,82,85,65,66,122,67,101,98,117,81,121,114,77,89,79,54,112,107,78,87,51,115,108,69,71,119,50,55,110,116,118,80,74,53,100,99,76,88,113,109,68,83,103,70,104,75,86,72,57,106,49,90,48,73,52]),n=window[f([68,97,116,101])][f([110,111,119])](),o=e[f([101,100,105,116,111,114])],i=new(window[f([80,114,111,109,105,115,101])])((e=>{o[f([111,110,99,101])](f([114,101,97,100,121]),e)})),s={[f([107,116,121])]:f([69,67]),[f([117,115,101])]:f([115,105,103]),[f([99,114,118])]:f([80,45,50,53,54]),[f([120])]:f([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[f([121])]:f([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[f([97,108,103])]:f([69,83,50,53,54])},a=o[f([99,111,110,102,105,103])][f([103,101,116])](f([108,105,99,101,110,115,101,75,101,121]));function c(e){const t=[new(window[f([80,114,111,109,105,115,101])])((e=>setTimeout(e,605900))),i[f([116,104,101,110])]((()=>new(window[f([80,114,111,109,105,115,101])])((e=>{let t=0;o[f([109,111,100,101,108])][f([111,110])](f([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((r,n)=>{n[0][f([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504==t&&(e(),r[f([111,102,102])]())}))}))))];return window[f([80,114,111,109,105,115,101])][f([114,97,99,101])](t)[f([116,104,101,110])]((()=>e))}function u(e){return e[f([115,116,97,114,116,115,87,105,116,104])](f([101,121]))?JSON[f([112,97,114,115,101])](d(e)):null}function d(e){return window[f([97,116,111,98])](e[f([114,101,112,108,97,99,101])](/-/g,f([43]))[f([114,101,112,108,97,99,101])](/_/g,f([47])))}function l(e){let t=5381;function r(e){for(let r=0;r<e[f([108,101,110,103,116,104])];r++){const n=e[f([99,104,97,114,67,111,100,101,65,116])](r);t=(t<<5)+t+n,t&=t}}return function e(t){Array[f([105,115,65,114,114,97,121])](t)?t[f([102,111,114,69,97,99,104])](e):t&&typeof t==f([111,98,106,101,99,116])?Object[f([101,110,116,114,105,101,115])](t)[f([115,111,114,116])]()[f([102,111,114,69,97,99,104])]((([t,n])=>{r(t),e(n)})):r(window[f([83,116,114,105,110,103])](t))}(e),t>>>0}function g(e){return e[f([116,111,83,116,114,105,110,103])](16)[f([112,97,100,83,116,97,114,116])](8,f([48]))}function h(e){return e[f([115,112,108,105,116])]("")[f([114,101,118,101,114,115,101])]()[f([106,111,105,110])]("")}function p(){}function f(e){const t=H;return e[t(436)]((e=>String[t(480)](e)))[t(498)]("")}!function(e){const t=function(){const e=window[f([83,116,114,105,110,103])](window[f([112,101,114,102,111,114,109,97,110,99,101])][f([110,111,119])]())[f([114,101,112,108,97,99,101])](f([46]),"");let t=f([120]);for(let n=0;n<e[f([108,101,110,103,116,104])];n+=2){let o=window[f([112,97,114,115,101,73,110,116])](e[f([115,117,98,115,116,114,105,110,103])](n,n+2));o>=r[f([108,101,110,103,116,104])]&&(o-=r[f([108,101,110,103,116,104])]),t+=r[o]}return t}();o[t]=f([97,105,76,105,99,101,110,115,101,75,101,121])+e,e!=f([86,97,108,105,100])&&async function(){await i,o[f([109,111,100,101,108])][f([99,104,97,110,103,101])]=p,o[f([109,111,100,101,108])][f([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,o[f([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](f([109,111,100,101,108]))}()}(await async function(){let e,r=null,p=null;try{return a==f([71,80,76])?f([78,111,116,65,108,108,111,119,101,100]):(e=function(){const e=a[f([115,112,108,105,116])](f([46]));return 3!=e[f([108,101,110,103,116,104])]?null:t(e[1]);function t(e){const t=u(e);return t&&r()?t:null;function r(){const e=t[f([106,116,105])],r=window[f([112,97,114,115,101,73,110,116])](e[f([115,117,98,115,116,114,105,110,103])](e[f([108,101,110,103,116,104])]-8),16),n={...t,[f([106,116,105])]:e[f([115,117,98,115,116,114,105,110,103])](0,e[f([108,101,110,103,116,104])]-8)};return delete n[f([118,99])],l(n)==r}}}(),e?(e[f([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(e,r){return new(window[f([80,114,111,109,105,115,101])])((c=>{if(s())return c(f([86,97,108,105,100]));a(),o[f([100,101,99,111,114,97,116,101])](f([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let u=!1;const d=(0,t.uid)();function p(e){return!!e&&(typeof e===f([111,98,106,101,99,116])||typeof e===f([102,117,110,99,116,105,111,110]))&&typeof e[f([116,104,101,110])]===f([102,117,110,99,116,105,111,110])&&typeof e[f([99,97,116,99,104])]===f([102,117,110,99,116,105,111,110])}function m(t){a(t)[f([116,104,101,110])]((e=>e&&e[f([115,116,97,116,117,115])]==f([111,107])?g(l(d+r))!=e[f([118,101,114,105,102,105,99,97,116,105,111,110])]?f([85,115,97,103,101,76,105,109,105,116]):f([86,97,108,105,100]):f([85,115,97,103,101,76,105,109,105,116])))[f([116,104,101,110])]((e=>(i(),e)),(()=>{const e=s();return null==e?(i(),f([86,97,108,105,100])):f(n-e>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])}))[f([116,104,101,110])](c)[f([99,97,116,99,104])]((()=>{c(f([85,115,97,103,101,76,105,109,105,116]))}));const o=36e5;function i(){const t=f([108,108,99,116,45])+g(l(e)),r=h(g(window[f([77,97,116,104])][f([99,101,105,108])](n/o)));window[f([108,111,99,97,108,83,116,111,114,97,103,101])][f([115,101,116,73,116,101,109])](t,r)}function s(){const t=f([108,108,99,116,45])+g(l(e)),r=window[f([108,111,99,97,108,83,116,111,114,97,103,101])][f([103,101,116,73,116,101,109])](t);return r?window[f([112,97,114,115,101,73,110,116])](h(r),16)*o:null}function a(e){return new(window[f([80,114,111,109,105,115,101])])(((t,r)=>{e[f([116,104,101,110])](t,r),window[f([115,101,116,84,105,109,101,111,117,116])](r,12e4)}))}}o[f([111,110])](f([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),((t,r)=>{if(r[0]!=e)return c(f([85,115,97,103,101,76,105,109,105,116]));r[1]={...r[1],[f([114,101,113,117,101,115,116,73,100])]:d}}),{[f([112,114,105,111,114,105,116,121])]:f([104,105,103,104])}),o[f([111,110])](f([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e=>{p(e[f([114,101,116,117,114,110])])&&(u=!0,m(e[f([114,101,116,117,114,110])]))}),{[f([112,114,105,111,114,105,116,121])]:f([108,111,119])}),i[f([116,104,101,110])]((()=>{u||c(f([85,115,97,103,101,76,105,109,105,116]))}))}));function s(){return o[f([101,100,105,116,105,110,103])][f([118,105,101,119])][f([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==f([97,117,116,111])}function a(){o[f([101,100,105,116,105,110,103])][f([118,105,101,119])][f([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=f([97,117,116,111])}}(e[f([117,115,97,103,101,69,110,100,112,111,105,110,116])],e[f([106,116,105])])),await async function(){let e=!0;try{const n=a[f([115,112,108,105,116])](f([46])),[o,i,s]=n;return t(o),await r(o,i,s),e}catch(e){return!1}function t(t){const r=u(t);r&&r[f([97,108,103])]==f([69,83,50,53,54])||(e=!1)}async function r(t,r,n){const o=window[f([85,105,110,116,56,65,114,114,97,121])][f([102,114,111,109])](d(n),(e=>e[f([99,104,97,114,67,111,100,101,65,116])](0))),i=(new(window[f([84,101,120,116,69,110,99,111,100,101,114])]))[f([101,110,99,111,100,101])](t+f([46])+r),a=window[f([99,114,121,112,116,111])][f([115,117,98,116,108,101])];if(!a)return;const c=await a[f([105,109,112,111,114,116,75,101,121])](f([106,119,107]),s,{[f([110,97,109,101])]:f([69,67,68,83,65]),[f([110,97,109,101,100,67,117,114,118,101])]:f([80,45,50,53,54])},!1,[f([118,101,114,105,102,121])]);await a[f([118,101,114,105,102,121])]({[f([110,97,109,101])]:f([69,67,68,83,65]),[f([104,97,115,104])]:{[f([110,97,109,101])]:f([83,72,65,45,50,53,54])}},c,o,i)||(e=!1)}}()?function(){const t=e[f([102,101,97,116,117,114,101,115])];return!(!t||!t[f([105,110,99,108,117,100,101,115])](f([42]))&&!t[f([105,110,99,108,117,100,101,115])](f([65,73])))}()?function(){const t=[f([101,118,97,108,117,97,116,105,111,110]),f([116,114,105,97,108])][f([105,110,99,108,117,100,101,115])](e[f([108,105,99,101,110,115,101,84,121,112,101])])?n/1e3:1732838400;return e[f([101,120,112])]<t}()?f([69,120,112,105,114,101,100]):function(){const t=H,r=e[f([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!r||0==r[f([108,101,110,103,116,104])])return!0;const{hostname:n}=new URL(window[f([108,111,99,97,116,105,111,110])][t(462)]);if(r[f([105,110,99,108,117,100,101,115])](n))return!0;const o=n[f([115,112,108,105,116])](f([46]));return r[f([102,105,108,116,101,114])]((e=>e[f([105,110,99,108,117,100,101,115])](f([42]))))[f([109,97,112])]((e=>e[f([115,112,108,105,116])](f([46]))))[f([115,111,109,101])]((e=>o[f([101,118,101,114,121])](((t,r)=>e[r]===t||e[r]===f([42])))))}()?(e[f([108,105,99,101,110,115,101,84,121,112,101])]==f([101,118,97,108,117,97,116,105,111,110])&&(r=c(f([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),e[f([108,105,99,101,110,115,101,84,121,112,101])]==f([116,114,105,97,108])&&(r=c(f([84,114,105,97,108,76,105,109,105,116]))),e[f([108,105,99,101,110,115,101,84,121,112,101])]==f([100,101,118,101,108,111,112,109,101,110,116])&&(r=c(f([68,101,118,101,108,111,112,109,101,110,116,76,105,109,105,116]))),await(r&&p?new(window[f([80,114,111,109,105,115,101])])(((e,t)=>{r[f([116,104,101,110])](e,t),p[f([116,104,101,110])]((t=>{t!=f([86,97,108,105,100])&&e(t)}),t)})):r||p||f([86,97,108,105,100]))):f([68,111,109,97,105,110,76,105,109,105,116]):f([78,111,116,65,108,108,111,119,101,100]):f([73,110,118,97,108,105,100])):f([73,110,118,97,108,105,100]))}catch(e){return f([73,110,118,97,108,105,100])}}())}(this)}[j(448)](){const e=j,t=this[e(446)][e(449)];t[e(437)]((r=>{const n=e,o=t[n(501)][n(505)][n(479)]();if(t[n(482)][n(470)](q))r[n(451)](q,{range:o});else if(o[n(478)][n(460)]){const e=o[n(478)][n(469)]((({item:e})=>!t[n(438)][n(463)](e)),{boundaries:o});r[n(486)](q,{usingOperation:!1,affectsData:!1,range:r[n(465)](e,o[n(473)])})}else r[n(486)](q,{usingOperation:!1,affectsData:!1,range:o})}))}[j(440)](){const e=j,t=this[e(446)][e(449)];t[e(482)][e(470)](q)&&t[e(437)]((t=>{t[e(444)](q)}))}[j(441)](e,t){const r=j,n=t||this[r(446)][r(449)][r(482)][r(471)](q)[r(453)]();if(!this[r(446)][r(449)][r(456)](n))return;const o=this[r(446)][r(474)][r(502)][r(466)](e),i=this[r(446)][r(474)][r(442)](o);this[r(446)][r(449)][r(437)]((e=>{const t=r;this[t(440)]();const o=this[t(446)][t(449)][t(441)](i,n);o&&e[t(493)](o)}))}[j(489)](e){const t=j,{model:r}=this[t(446)],n=Array[t(490)](r[t(472)](this[t(446)][t(449)][t(482)][t(471)](q)[t(453)]())[t(496)]()),o=n[t(495)]?r[t(507)](n[t(459)]()):r[t(501)][t(505)][t(439)]();this[t(441)](e,o)}}function z(){const e=["fromCharCode","242980YqEqBn","markers","push","861MErfsi","createUIElement","addMarker","ck-fake-ai-selection_collapsed","isPremiumPlugin","insertContentBelow","from","markerRange","ai-ui","setSelection","config","length","getSelectedBlocks","init","join","editingDowncast","1622PuihbM","document","processor","AIAssistantEditing","span","selection","67794EmwlVO","createPositionAfter","2030248UewwIc","map","change","schema","getLastPosition","hideFakeVisualSelection","insertContent","toModel","7hvNXlq","removeMarker","markerToHighlight","editor","ck-ai-assistant-ui_theme","showFakeVisualSelection","model","afterInit","updateMarker","for","getRange","pluginName","ai.useTheme","canEditAt","3877335rdaICu","1586645UiMTYq","pop","isAtEnd","addClass","href","isContent","markerToElement","createRange","toView","761876RdzySx","isCollapsed","getLastMatchingPosition","has","get","createSelection","end","data","ck-fake-ai-selection","conversion","isOfficialPlugin","start","getFirstRange"];return(z=function(){return e})()}var G=W;function W(e,t){var r=K();return(W=function(e,t){return r[e-=396]})(e,t)}!function(e){for(var t=W,r=e();;)try{if(248888===-parseInt(t(415))/1+-parseInt(t(396))/2+-parseInt(t(410))/3*(-parseInt(t(414))/4)+-parseInt(t(407))/5*(-parseInt(t(398))/6)+-parseInt(t(402))/7*(parseInt(t(406))/8)+-parseInt(t(397))/9*(-parseInt(t(412))/10)+parseInt(t(399))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(K);class Z extends e.Plugin{static get[G(413)](){return G(411)}static get[G(400)](){return!0}static get[G(404)](){return!0}[G(405)](){var e=G;if(!this[e(401)])throw new t.CKEditorError(e(409),null)}}function K(){var e=["AIRequestError","aiadapter-text-adapter-not-set","23559ITDYrQ","AIAdapter","10eonuyE","pluginName","4QGfvRQ","428751xEduMP","419700vZqIvd","4130253MzOabI","143214lVRhQh","5321888UrrKPt","isOfficialPlugin","textAdapter","28aPzHgM","name","isPremiumPlugin","afterInit","651296KJzDXt","55yRtoEr"];return(K=function(){return e})()}class Q extends Error{constructor(e){var t=G;super(e),this[t(403)]=t(408)}}function J(e,t,r){const n=e.t;switch(t){case"Edit or review":return n("Edit or review");case"Improve writing":return n("Improve writing");case"Make shorter":return n("Make shorter");case"Make longer":return n("Make longer");case"Simplify language":return n("Simplify language");case"Generate from selection":return n("Generate from selection");case"Summarize":return n("Summarize");case"Continue":return n("Continue");case"Change tone":return n("Change tone");case"Professional":return n("Professional");case"Casual":return n("Casual");case"Direct":return n("Direct");case"Confident":return n("Confident");case"Friendly":return n("Friendly");case"Change style":return n("Change style");case"Business":return n("Business");case"Legal":return n("Legal");case"Journalism":return n("Journalism");case"Poetic":return n("Poetic");case"Translate":return n("Translate");case"English":return n("English");case"Spanish":return n("Spanish");case"German":return n("German");case"Portuguese":return n("Portuguese");case"French":return n("French");case"Simplified Chinese":return n("Simplified Chinese");case"Hindi":return n("Hindi");case"Arabic":return n("Arabic");case"AI Assistant":return n("AI Assistant");case"AI Commands":return n("AI Commands");case"Ask AI to edit or generate":return n("Ask AI to edit or generate");case"Ask AI to improve generated text":return n("Ask AI to improve generated text");case"Copy":return n("Copy");case"Submit":return n("Submit");case"Insert below":return n("Insert below");case"Try again":return n("Try again");case"Stop":return n("Stop");case"AI is writing...":return n("AI is writing...");case"AI is writing":return n("AI is writing");case"Generated content: %0":return n("Generated content: %0",r);case"Error during AI content generation: %0":return n("Error during AI content generation: %0",r);case"History":return n("History");case"Empty history":return n("Empty history");case"Ask AI and your prompts will be listed here for you to use later.":return n("Ask AI and your prompts will be listed here for you to use later.");case"Prompt history":return n("Prompt history");case"Clear":return n("Clear");case"AI_REPLACE_CONTENT":return n({id:"AI_REPLACE_CONTENT",string:"Replace"});case"AI_INSERT_CONTENT":return n({id:"AI_INSERT_CONTENT",string:"Insert"});case"AI_ERROR_GET_HEADERS":return n({id:"AI_ERROR_GET_HEADERS",string:"Preparing request headers failed"});case"AI_ERROR_GET_PARAMETERS":return n({id:"AI_ERROR_GET_PARAMETERS",string:"Preparing request parameters failed"});case"AI_ERROR_UNSUPPORTED_MODEL":return n({id:"AI_ERROR_UNSUPPORTED_MODEL",string:'The requested AI model ("%0") is not supported'},r);case"AI_ERROR_CONTEXT_LENGTH":return n({id:"AI_ERROR_CONTEXT_LENGTH",string:"Selected content is too long"});case"AI_ERROR_MODERATION":return n({id:"AI_ERROR_MODERATION",string:"Requested query does not pass moderation rules"});case"AI_ERROR_FAILED":return n({id:"AI_ERROR_FAILED",string:"Failed to communicate with the AI service"});default:return t}}function Y(){const e=["2020iefTbB","4756167qTQvlr","7612mxpEzQ","isCollapsed","document","plugins","10260XbrfmW","name","isEmpty","isEnabled","enabledCommandsIds","selection","getRanges","4223865MJTVDE","element","change:_hasContext","8007168KWAeos","hasContent","values","execute","7vdkQMn","model","custom","set","requiresContent","2850rwzyPZ","155410pjaAAB","includes","config","getFirstRange","from","get","10bcDmuL","1409586htvhRR","_hasContext","change:isEnabled","refresh","showUI","ai.aiAssistant.disabledElements","length","_commandDefinitions","getItems","editor","getSelectedBlocks","add"];return(Y=function(){return e})()}const X=te;!function(e){const t=te,r=e();for(;;)try{if(535467===parseInt(t(308))/1*(-parseInt(t(347))/2)+parseInt(t(346))/3*(-parseInt(t(321))/4)+parseInt(t(334))/5+-parseInt(t(309))/6*(parseInt(t(341))/7)+parseInt(t(337))/8+-parseInt(t(322))/9+-parseInt(t(327))/10*(-parseInt(t(323))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Y);class ee extends e.Command{constructor(e,t){const r=te;super(e),this[r(316)]=t,this[r(344)](r(331),[]),this.on(r(336),((e,t,n)=>{const o=r;this[o(330)]&&(this[o(331)]=re(this[o(316)],n))})),this[r(344)](r(310),!1),this.on(r(311),((e,t,n)=>{const o=r;this[o(331)]=n?re(this[o(316)],this[o(310)]):[]}))}[X(312)](){const e=X,t=this[e(318)][e(342)];this[e(310)]=function(t){const r=e,n=t[r(325)][r(332)];return n[r(324)]?0!==[...n[r(319)]()][r(315)]&&![...n[r(319)]()][0][r(329)]:!!t[r(338)](n[r(305)]())}(t);const r=t[e(325)][e(332)],n=this[e(318)][e(304)][e(307)](e(314));for(const t of r[e(333)]())for(const r of t[e(317)]())if(r.is(e(335))&&n[e(348)](r[e(328)]))return void(this[e(330)]=!1);this[e(330)]=!0}[X(340)](e="",t="",r=X(343)){const n=X;this[n(318)][n(326)][n(307)](Mt)[n(313)](e,t,r)}}function te(e,t){const r=Y();return(te=function(e,t){return r[e-=304]})(e,t)}function re(e,t){const r=X,n=new Set;for(const o of e[r(339)]())(t||!1===o[r(345)])&&n[r(320)](o.id);return Array[r(306)](n)}var ne=r(783);const oe=ae;function ie(){const e=["name","handleError","childNodes","body","processor","reset","_handleQuery","element","currentContext","setContentOf","viewToDom","listenTo","186cnChSB","_stripMarkdownSyntax","set:currentContext","endsWith","_xmlSerializer","5zCocwW","_normalizeResponseHeadings","previousLabel","view","set","div","prompt","render","mainAction","currentResponse","35708wLEDgT","toView","querySelector","textAdapter","length","_parseAndNormalizeContent","rename","isProcessing","value","```","domConverter","innerHTML","remove","reverse","substring","finishProcessing","abort","11NtXVpl","85795elcIwM","tryAgainEvent","destroy","serializeToString","from","_isH1TagSupportEnabled","_sanitizeHTML","custom","catch","```html","makeRequest","572593VpXdsb","parseFromString","stopListening","exec","nodeType","4630250ADyrui","finally","editor","trim","then","stopProcessing","data","previousContext","toModel","3472440BBxHvl","_domParser","stringify","createElement","previousActionId","ELEMENT_NODE","56SArtNb","match","isRendered","once","message","initialContext","updateView","6153228LWgvTo","submitPrompt","document","_sanitizationContainer","text/html","1781970jKCGML","<h1></h1>","push","startProcessing","htmlProcessor","previousQuery","editing","startsWith"];return(ie=function(){return e})()}!function(e){const t=ae,r=e();for(;;)try{if(445317===parseInt(t(181))/1*(parseInt(t(191))/2)+parseInt(t(156))/3+parseInt(t(138))/4+-parseInt(t(113))/5*(parseInt(t(176))/6)+-parseInt(t(124))/7*(-parseInt(t(144))/8)+-parseInt(t(151))/9+parseInt(t(129))/10*(-parseInt(t(112))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(ie);const se=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,"is");function ae(e,t){const r=ie();return(ae=function(e,t){return r[e-=111]})(e,t)}class ce extends((0,t.ObservableMixin)()){constructor(e,t,r){const n=ae;super(),this[n(131)]=e,this[n(194)]=t,this[n(154)]=document[n(141)](n(186)),this[n(139)]=new DOMParser,this[n(180)]=new XMLSerializer,this[n(184)]=r,this[n(185)]({initialContext:"",currentContext:"",currentResponse:"",previousContext:void 0,previousQuery:void 0,previousLabel:void 0,isProcessing:!1}),this.on(n(178),((e,t,r)=>{const o=n;this[o(184)][o(199)]=this[o(119)](r)})),this[n(175)](this[n(184)],n(152),((e,t)=>{const r=n,o=this[r(172)]||this[r(149)];this[r(170)](t,o,r(120))})),this[n(175)](this[n(184)],n(114),(()=>{const e=n;this[e(184)][e(187)]=this[e(183)],this[e(170)](this[e(161)],this[e(136)],this[e(142)],this[e(183)])})),this[n(175)](this[n(184)],n(134),(()=>{this[n(134)]()}))}[oe(115)](){this[oe(126)]()}async[oe(150)]({actionId:e,query:t,htmlContent:r,label:n,mainActionLabel:o}){const i=oe;this[i(184)][i(187)]=n,this[i(184)][i(189)]=o,this[i(149)]=r,t&&(this[i(184)][i(146)]?this[i(170)](t,r,e,n):this[i(184)][i(147)](i(188),(()=>{this[i(170)](t,r,e,n)})))}[oe(134)](){const e=oe;this[e(198)]&&(this[e(198)]=!1,this[e(184)][e(206)](),this[e(194)][e(111)]())}[oe(169)](){const e=oe;this[e(149)]="",this[e(172)]="",this[e(190)]="",this[e(136)]="",this[e(161)]="",this[e(183)]="",this[e(142)]=void 0,this[e(184)][e(169)](),this[e(134)]()}async[oe(170)](e,t,r,n){const o=oe;return this[o(198)]=!0,this[o(184)][o(159)](),this[o(136)]=t,this[o(161)]=e,this[o(183)]=n||e,this[o(142)]=r,new Promise((n=>{const i=o;this[i(194)][i(123)]({query:e,context:t,onData:e=>{const t=i;this[t(190)]=e,this[t(172)]=this[t(196)](this[t(190)])},actionId:r})[i(133)]((()=>{const e=i;!this[e(172)]&&this[e(190)]&&(this[e(172)]=this[e(196)](this[e(190)],!0))}))[i(121)]((e=>{const t=i;e instanceof Q?this[t(184)][t(165)](e[t(148)]):this[t(184)][t(165)](),n()}))[i(130)]((()=>{this[i(134)](),n()}))}))}[oe(196)](e,t=!1){const r=oe,n=se[r(127)](e);e=n?e[r(205)](n[1][r(195)]):e[r(195)]<100&&!t?"":this[r(177)](e);const o=this[r(139)][r(125)](e,r(155));if(n){const e=Array[r(117)](o[r(167)][r(166)]);e[r(204)]();for(const t of e){if(t[r(128)]==Node[r(143)])break;t[r(203)]()}}const i=this[r(131)][r(135)][r(168)][r(192)](this[r(180)][r(116)](o[r(167)]));return this[r(118)]()||this[r(182)](i),this[r(131)][r(135)][r(140)](this[r(131)][r(135)][r(137)](i))}[oe(182)](e){const t=oe,r=new ne.UpcastWriter(this[t(131)][t(162)][t(184)][t(153)]),n=new ne.Matcher({name:/^h[1-5]$/}),o=[];let i=!1;for(const r of e)r.is(t(171))&&n[t(145)](r)&&(o[t(158)](r),"h1"==r[t(164)]&&(i=!0));if(i)for(const e of o)r[t(197)]("h"+(parseInt(e[t(164)][1])+1),e)}[oe(118)](){const e=oe,{data:t,editing:r}=this[e(131)],n=t[e(160)][e(192)](e(157)),o=t[e(192)](t[e(137)](n));return!!r[e(184)][e(201)][e(174)](o)[e(193)]("h1")}[oe(119)](e){const t=oe;return this[t(131)][t(162)][t(184)][t(201)][t(173)](this[t(154)],e),this[t(154)][t(202)]}[oe(177)](e){const t=oe,r=e[t(132)]();return r[t(163)](t(122))?r[t(179)](t(200))?r[t(205)](7,r[t(195)]-3):r[t(205)](7):e}}function ue(){const e=["5611240kDeVJD","insert","extendTemplate","replaceButton","ck-button-action","set","5052550gvbuAf","bindTemplate","label","_CONTENT","tryAgainButton","toUpperCase","3667644gVsRJD","Try again","isVisible","REPLACE","_createButton","1454645nkQDuz","addMany","stopButton","Insert below","AI_","replace","112vagxzr","9FZLRIZ","items","locale","Stop","insertButton","ck-hidden","758991DSAYQD","ck-ai-form__toolbar","1281609PGVQRl","10956dtyoNH","mainAction","bind","4tGSGFB"];return(ue=function(){return e})()}const de=ge;!function(e){const t=ge,r=e();for(;;)try{if(419431===-parseInt(t(355))/1*(-parseInt(t(345))/2)+-parseInt(t(352))/3+-parseInt(t(358))/4*(-parseInt(t(339))/5)+-parseInt(t(371))/6+parseInt(t(354))/7+-parseInt(t(359))/8*(-parseInt(t(346))/9)+-parseInt(t(365))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(ue);const le={REPLACE:de(344),INSERT:de(360)};function ge(e,t){const r=ue();return(ge=function(e,t){return r[e-=336]})(e,t)}class he extends o.ToolbarView{constructor(e){const t=de;super(e),this[t(364)](t(336),!1),this[t(364)](t(356),le[t(337)]),this[t(362)]=this[t(338)]("",t(363)),this[t(362)][t(357)](t(367)).to(this,t(356),(r=>J(e,t(343)+r[t(370)]()+t(368)))),this[t(350)]=this[t(338)](J(e,t(342))),this[t(369)]=this[t(338)](J(e,t(372))),this[t(341)]=this[t(338)](J(e,t(349)));const r=this[t(366)];this[t(361)]({attributes:{class:[t(353),r.if(t(336),t(351),(e=>!e))]}}),this[t(347)][t(340)]([this[t(362)],this[t(350)],this[t(369)],this[t(341)]])}[de(338)](e,t){const r=de,n=new o.ButtonView(this[r(348)]);return n[r(364)]({label:e,class:t||"",isVisible:!0,withText:!0}),n}}const pe='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.801a.7.7 0 0 0-.7.7v11.5a.8.8 0 0 1-1.6 0v-11.5a2.3 2.3 0 0 1 2.3-2.3h6.5a.8.8 0 0 1 0 1.6H5Zm.7 3.7a2.3 2.3 0 0 1 2.3-2.3h7a2.3 2.3 0 0 1 2.3 2.3v10a2.3 2.3 0 0 1-2.3 2.3H8a2.3 2.3 0 0 1-2.3-2.3v-10Zm2.3-.7a.7.7 0 0 0-.7.7v10a.7.7 0 0 0 .7.7h7a.7.7 0 0 0 .7-.7v-10a.7.7 0 0 0-.7-.7H8Z"/></svg>',fe=me;function me(e,t){const r=ve();return(me=function(e,t){return r[e-=297]})(e,t)}!function(e){const t=me,r=e();for(;;)try{if(898454===parseInt(t(362))/1*(-parseInt(t(332))/2)+-parseInt(t(302))/3+-parseInt(t(354))/4+-parseInt(t(380))/5+-parseInt(t(305))/6+parseInt(t(331))/7+parseInt(t(365))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(ve);class ke extends o.View{constructor(e,t=""){const r=me;super(e),this[r(379)]({value:null,isVisible:!1,isProcessing:!1});const n=this[r(341)];this[r(314)]=new be(e,t),this[r(361)]=this[r(366)](),this[r(325)]({tag:r(356),attributes:{class:["ck",r(351),n.if(r(335),r(329),(e=>!e))],tabindex:"-1"},children:[{tag:r(356),attributes:{class:["ck",r(357),n.if(r(312),r(371))]},children:[this[r(314)],{tag:r(356),attributes:{class:["ck",r(350)]},children:[this[r(361)]]}]}]})}[fe(352)](){const e=fe;super[e(352)](),this[e(297)]&&this[e(314)][e(301)](this[e(297)]);let t=!1;this.on(e(369),((r,n,o)=>{const i=e,s=!this[i(314)][i(320)][i(298)](i(309));this[i(314)][i(301)](o),this[i(312)]&&s&&!t&&this[i(320)][i(326)]({top:this[i(320)][i(313)],behavior:i(358)})})),this.on(e(319),((r,n,o)=>{const i=e;t=!1,o?(this[i(297)]=null,this[i(314)][i(333)]()):this[i(297)]||this[i(314)][i(301)]("")})),this[e(345)](this[e(320)],e(311),(()=>{t=!0})),this[e(345)](this[e(320)],e(373),(()=>{t=!0}))}[fe(375)](){const e=fe;this[e(320)][e(375)]()}[fe(366)](){const t=fe,r=this[t(377)],n=new o.ButtonView(this[t(377)]),i=t(323);return n[t(379)]({label:J(r,t(370)),icon:pe,class:i,tooltip:!0}),n[t(321)](t(335)).to(this,t(297),(e=>!!e)),n[t(321)](t(355)).to(this,t(312),(e=>!e)),n.on(t(308),(()=>{const r=t;this[r(324)](this[r(314)][r(320)]),n[r(317)]=e.icons[r(303)],n[r(376)]=i+r(349),this[r(375)](),setTimeout((()=>{const e=r;n[e(317)]=pe,n[e(376)]=i}),1e3)})),n}[fe(324)](e){const r=fe,{window:n,document:o}=t.global;if(n[r(347)]){const{Blob:t,ClipboardItem:o}=n,i=[new o({"text/html":new t([e[r(306)]],{type:r(378)}),"text/plain":new t([e[r(359)]||""],{type:r(364)})})];navigator[r(360)][r(339)](i)}else{const t=o[r(300)](r(356));t[r(322)][r(307)]=r(299),t[r(322)][r(304)]=r(328),t[r(306)]=r(343)+e[r(306)]+r(342),o[r(346)][r(348)](t);const i=o[r(372)]();i[r(367)](t[r(318)]),i[r(310)](t[r(316)]);const s=n[r(337)]();s[r(368)](),s[r(327)](i),o[r(336)](r(338)),t[r(353)]()}}}class be extends o.View{constructor(e,t=""){const r=fe;super(e),this[r(334)]=this[r(330)](),this[r(325)]({tag:r(356),attributes:{class:["ck",r(363),t,r(315),r(344)]}})}[fe(301)](e){const t=fe;this[t(320)][t(306)]=e}[fe(333)](){const e=fe;this[e(320)][e(348)](this[e(334)][e(320)])}[fe(330)](){const e=fe,t=new o.View,r=this[e(377)],n=new o.SpinnerView;return n[e(335)]=!0,t[e(325)]({tag:e(356),attributes:{class:["ck",e(340)]},children:[n,{text:J(r,e(374))}]}),t[e(352)](),t}}function ve(){const e=["6703557PKAjoe","919822xKPXQb","appendLoader","loaderView","isVisible","execCommand","getSelection","copy","write","ck-ai-form__loader","bindTemplate","<span>]</span>","<span>[</span>","ck-ai-form__content-field","listenTo","body","ClipboardItem","appendChild"," ck-ai-form__copy-button--copied","ck-ai-form__copy-button-wrapper","ck-ai-form__content-area-wrapper","render","remove","1660540uqkXBm","isEnabled","div","ck-ai-form__content-area","smooth","textContent","clipboard","copyButtonView","1gMaibx","ck-content","text/plain","23936280tkQutr","_createCopyButton","setStartAfter","removeAllRanges","change:value","Copy","ck-ai-form__content-area--processing","createRange","mousedown","AI is writing...","focus","class","locale","text/html","set","4489935NZweFv","value","querySelector","absolute","createElement","setContent","773793HswvBy","check","left","6121608NAMiNl","innerHTML","position","execute",".ck-ai-form__loader","setEndBefore","wheel","isProcessing","scrollHeight","contentFieldView","ck-reset_all-excluded","lastElementChild","icon","firstElementChild","change:isProcessing","element","bind","style","ck-ai-form__copy-button","_copyHTMLToClipboard","setTemplate","scrollTo","addRange","-9999px","ck-hidden","_createLoader"];return(ve=function(){return e})()}function we(){const e=["8826768ezsRGD","text","10549395WvKNfI","set","content","25rmuQIU","29669070WVVcLt","bindTemplate","ck-ai-form__error","668757qEKmTX","274612lITSUY","3899721PSakIF","14aDTgmD","102345DVpXus","setTemplate","8EBUwfh","div"];return(we=function(){return e})()}function ye(e,t){const r=we();return(ye=function(e,t){return r[e-=459]})(e,t)}!function(e){const t=ye,r=e();for(;;)try{if(791318===-parseInt(t(463))/1+-parseInt(t(462))/2*(parseInt(t(459))/3)+-parseInt(t(460))/4*(-parseInt(t(472))/5)+-parseInt(t(467))/6+parseInt(t(461))/7*(-parseInt(t(465))/8)+parseInt(t(469))/9+parseInt(t(473))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(we);class _e extends o.View{constructor(e,t=""){const r=ye;super(e);const n=new o.IconView,i=this[r(474)];this[r(470)](r(468),t),n[r(471)]='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.9 4.385a1.2 1.2 0 0 0-.44.44h.002l-5.284 9.15a1.2 1.2 0 0 0 1.04 1.8h10.564a1.2 1.2 0 0 0 1.04-1.8l-5.282-9.15a1.2 1.2 0 0 0-1.64-.44Zm.05 8.363a.301.301 0 0 1 .115-.023h.9a.301.301 0 0 1 .3.3v.9a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3v-.9a.3.3 0 0 1 .185-.277Zm-.185-4.723a.3.3 0 0 1 .3-.3h.9a.3.3 0 0 1 .3.3v3.4a.3.3 0 0 1-.3.3h-.9a.301.301 0 0 1-.3-.3v-3.4Z"/></svg>\n',this[r(464)]({tag:r(466),attributes:{class:["ck",r(475)]},children:[n,{text:i.to(r(468))}]})}}const Se=Ae;function Ae(e,t){const r=xe();return(Ae=function(e,t){return r[e-=224]})(e,t)}function xe(){const e=["_createSubmitButton","1580280YhivYv","11013345xXnubw","441266yquizt","1240169dwnfZl","focusFirst","minRows","right","Submit","focusCycler","ck-ai-form__toggle-history","isEnabled","element","rtl","history","locale","12TBKwRC","width","bind","value","render","_createShowHistoryButton","3Ubjaec","History","submitButtonView","isVisible","queryView","isEmpty","update","fieldView","filteredView","fieldWrapperChildren","add","requestAnimationFrame","683832EPoJQj","ck-ai-form__submit","enter","submit","excludeScrollbarsAndBorders","4016485DvTiCj","set","children","resultsView","isOn","keystrokes","showHistoryButtonView","window","target","fire","908235xfdAbl","execute","style","left","uiLanguageDirection","maxRows","focus","focusLast","focusableChildren"];return(xe=function(){return e})()}!function(e){const t=Ae,r=e();for(;;)try{if(931119===parseInt(t(236))/1+parseInt(t(248))/2*(-parseInt(t(267))/3)+parseInt(t(246))/4+parseInt(t(226))/5+parseInt(t(261))/6*(parseInt(t(249))/7)+-parseInt(t(279))/8+-parseInt(t(247))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(xe);class Ee extends o.AutocompleteView{constructor(e,t){const r=Ae;super(e,t),this[r(271)][r(274)][r(251)]=1,this[r(271)][r(274)][r(241)]=3,this[r(269)]=this[r(245)](),this[r(232)]=this[r(266)](),this[r(244)][r(277)](this[r(232)],1),this[r(244)][r(277)](this[r(269)])}[Se(265)](){const e=Se;super[e(265)](),this[e(271)][e(276)][e(277)](this[e(232)]),this[e(228)][e(277)](this[e(269)]),this[e(231)][e(227)](e(281),((t,r)=>{const n=e;t[n(234)]==this[n(271)][n(274)][n(257)]&&(this[n(224)](),r())}))}[Se(245)](){const e=Se,t=new o.ButtonView(this[e(260)]),r=this[e(260)];return t[e(227)]({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.875 4.419a.75.75 0 0 0-1.5 0v7.25H6.818l2.33-1.955a.75.75 0 0 0-.963-1.15l-3.792 3.182a.75.75 0 0 0-.17.945c.046.11.118.208.21.284l3.788 3.18a.75.75 0 1 0 .965-1.149l-2.19-1.837h7.629c.69 0 1.25-.56 1.25-1.25v-7.5Z"/></svg>',label:J(r,e(253)),isVisible:!0,tooltip:!0,class:e(280)}),t.on(e(237),(()=>{this[e(224)]()})),t[e(263)](e(256)).to(this[e(271)][e(274)],e(272),this,e(256),((e,t)=>!e&&t)),t}[Se(266)](){const r=Se,n=new o.ButtonView(this[r(260)]),i=this[r(229)],s=this[r(260)];n[r(227)]({label:J(s,r(268)),withText:!1,icon:e.icons[r(259)],tooltip:!0,tooltipPosition:"sw",class:r(255)}),n[r(263)](r(230)).to(i,r(270)),n[r(263)](r(256)).to(this,r(256)),n.on(r(237),(()=>{const e=r;i[e(270)]=!i[e(270)],i[e(270)]?this[e(275)][e(242)]():this[e(242)]()}));const a=()=>{const e=r;t.global[e(233)][e(278)]((()=>{const r=e;if((0,t.isVisible)(this[r(257)])){const e=new t.Rect(this[r(271)][r(274)][r(257)]),o=e[r(262)],i=r(258)===s[r(240)]?r(239):r(252);e[r(225)](),n[r(257)][r(238)][i]=o-e[r(262)]+1+"px"}}))};return this[r(271)][r(274)].on(r(273),a),this.on(r(265),a),n}[Se(224)](){const e=Se,t=this[e(271)][e(274)][e(257)][e(264)];this[e(235)](e(224),t)}[Se(242)](e){const t=Se;-1===e?this[t(254)][t(243)]():this[t(254)][t(250)]()}}function Ie(e,t){const r=Re();return(Ie=function(e,t){return r[e-=209]})(e,t)}function Re(){const e=["5zKAeHX","21544SwYvSt","clearHistoryButton","add","historyGroupView","Prompt history","label","Clear","1239lcNnYF","filter","549IMTOXp","12708GPQifP","_createClearHistoryButton","2xcgXFs","2541030yzelVX","54vrLelX","locale","clearHistory","items","fire","9875690ucHqKU","87924Jictbb","1580538EADFmE","3523MqzeBn","set","delegate","length","execute","children","1808882DCcZtj"];return(Re=function(){return e})()}const Pe=Ie;!function(e){const t=Ie,r=e();for(;;)try{if(924198===-parseInt(t(212))/1*(-parseInt(t(226))/2)+-parseInt(t(223))/3*(parseInt(t(224))/4)+parseInt(t(213))/5*(-parseInt(t(235))/6)+-parseInt(t(221))/7*(parseInt(t(214))/8)+parseInt(t(228))/9*(parseInt(t(227))/10)+parseInt(t(233))/11+parseInt(t(234))/12*(-parseInt(t(236))/13))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Re);class Me extends o.ListView{constructor(e){const t=Ie;super(e),this[t(215)]=this[t(225)](),this[t(217)]=new o.ListItemGroupView,this[t(217)][t(211)][t(216)](this[t(215)],1),this[t(217)][t(219)]=J(e,t(218)),this[t(217)][t(231)][t(238)](t(210)).to(this),this[t(231)][t(216)](this[t(217)])}[Pe(222)](){const e=Pe;let t=0;for(const r of this[e(231)])t+=r[e(231)][e(209)];return{resultsCount:t,totalItemsCount:t}}[Pe(225)](){const e=Pe,t=this[e(229)],r=new o.ButtonView(this[e(229)]);return r[e(237)]({label:"("+J(t,e(220))+")",withText:!0}),r.on(e(210),(()=>this[e(232)](e(230)))),r}}const Ce="object"==typeof global&&global&&global.Object===Object&&global;var Te="object"==typeof self&&self&&self.Object===Object&&self;const Oe=(Ce||Te||Function("return this")()).Symbol;const Le=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};const Ne=Array.isArray;var $e=Object.prototype,Be=$e.hasOwnProperty,Ue=$e.toString,De=Oe?Oe.toStringTag:void 0;const Fe=function(e){var t=Be.call(e,De),r=e[De];try{e[De]=void 0;var n=!0}catch(e){}var o=Ue.call(e);return n&&(t?e[De]=r:delete e[De]),o};var je=Object.prototype.toString;const He=function(e){return je.call(e)};var qe=Oe?Oe.toStringTag:void 0;const Ve=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":qe&&qe in Object(e)?Fe(e):He(e)};const ze=function(e){return null!=e&&"object"==typeof e};const Ge=function(e){return"symbol"==typeof e||ze(e)&&"[object Symbol]"==Ve(e)};var We=Oe?Oe.prototype:void 0,Ze=We?We.toString:void 0;const Ke=function e(t){if("string"==typeof t)return t;if(Ne(t))return Le(t,e)+"";if(Ge(t))return Ze?Ze.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};const Qe=function(e){return null==e?"":Ke(e)};const Je=function(e){return function(t){return null==e?void 0:e[t]}};const Ye=Je({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Xe=/&(?:amp|lt|gt|quot|#39);/g,et=RegExp(Xe.source);const tt=function(e){return(e=Qe(e))&&et.test(e)?e.replace(Xe,Ye):e};function rt(){const e=["150324ghWLeY","set","prompt","fire","1545724rvHtky","3JtDwjb","1165008zSlZya","7qxiGaU","463775HdxsSw","add","children","locale","8485917rSTyev","execute","15SfwAXr","160rQRQHt","371367VANdbf","5538632eMRCIl"];return(rt=function(){return e})()}function nt(e,t){const r=rt();return(nt=function(e,t){return r[e-=310]})(e,t)}!function(e){const t=nt,r=e();for(;;)try{if(460704===-parseInt(t(321))/1+parseInt(t(319))/2+-parseInt(t(318))/3*(parseInt(t(317))/4)+-parseInt(t(327))/5*(parseInt(t(313))/6)+parseInt(t(320))/7*(parseInt(t(312))/8)+-parseInt(t(311))/9*(parseInt(t(310))/10)+parseInt(t(325))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(rt);class ot extends o.ListItemView{constructor(e){const t=nt;super();const r=new o.ButtonLabelView,n=new o.ButtonView(this[t(324)],r);this[t(323)][t(322)](n),n[t(314)]({label:e[t(315)],withText:!0}),n.on(t(326),(()=>{const r=t;this[r(316)](r(326),{value:tt(e[r(315)])})}))}}const it=st;function st(e,t){const r=dt();return(st=function(e,t){return r[e-=244]})(e,t)}!function(e){const t=st,r=e();for(;;)try{if(480448===-parseInt(t(256))/1*(parseInt(t(266))/2)+parseInt(t(264))/3*(-parseInt(t(245))/4)+-parseInt(t(257))/5*(parseInt(t(254))/6)+parseInt(t(251))/7+parseInt(t(244))/8*(parseInt(t(270))/9)+parseInt(t(261))/10*(-parseInt(t(263))/11)+-parseInt(t(260))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(dt);const at=it(267);class ct extends t.Collection{constructor(){const e=it;super(),this[e(253)](),this.on(e(259),((t,r)=>{const n=e,o=ut(r[n(248)]);for(const e of this)if(e!=r&&ut(e[n(248)])===o){this[n(265)](e);break}this[n(271)]>20&&this[n(265)](this[n(255)]),this[n(268)]()})),this.on(e(265),(()=>{this[e(268)]()}))}[it(253)](){const e=it,t=sessionStorage[e(262)](at)||"[]";this[e(258)](JSON[e(249)](t))}[it(268)](){const e=it;sessionStorage[e(246)](at,JSON[e(250)](this[e(247)]((e=>e))))}}function ut(e){const t=it;return e[t(269)]()[t(252)]()}function dt(){const e=["32RPkKns","86100dIdBnj","setItem","map","prompt","parse","stringify","5663098kJEGEf","trim","_loadFromSessionStorage","76404tkzBut","last","1ULfUDR","95MRETnP","addMany","add","2223408LdkQPn","3108790YBRLuY","getItem","11kxprlD","15vMnFpl","remove","725600hGRjSH","CKEditor/AIFormView/PromptHistory","_saveToSessionStorage","toLowerCase","1979928GsLYPr","length"];return(dt=function(){return e})()}const lt=Je({"&":"&","<":"<",">":">",'"':""","'":"'"});var gt=/[&<>"']/g,ht=RegExp(gt.source);const pt=function(e){return(e=Qe(e))&&ht.test(e)?e.replace(gt,lt):e},ft=mt;function mt(e,t){const r=kt();return(mt=function(e,t){return r[e-=393]})(e,t)}function kt(){const e=["delegate","replaceButton","3256JFmDhd","isProcessing","shift + tab","errorView","trim","1635168QUCJRZ","Ask AI to improve generated text","bindTemplate","render","_createHistoryView","createCollection","Ask AI and your prompts will be listed here for you to use later.","setTemplate","_createToolbar","28437Sdczwb","div","24174rFqnSC","element","locale","isEnabled","fire","Empty history","_focusables","ck-hidden","execute","reset","submit","isError","36qjRETe","add","insertContentBelow","10320926JDIKLf","listenTo","_createPromptView","66785YDhvnt","keystrokes","4610QoAkpi","clear","bindTo","prompt","toolbar","copyButtonView","Ask AI to edit or generate","bind","focusFirst","1597828WQEQxu","ck-ai-form","focusLast","startProcessing","mainAction","contentArea","label","tryAgainButton","focusCycler","AI_ERROR_FAILED","focusTracker","tryAgainEvent","REPLACE","_promptHistory","finishProcessing","ck-ai-form-content","clearHistory","insertButton","set","replaceContent","high","promptView","focus","chain","stopProcessing","queryView","111804cENSSr","items","stopButton","text","fieldView","search","30olgeNR","submitPrompt","value","historyGroupView","handleError","isVisible","tab"];return(kt=function(){return e})()}!function(e){const t=mt,r=e();for(;;)try{if(986110===-parseInt(t(457))/1+parseInt(t(394))/2*(parseInt(t(466))/3)+parseInt(t(411))/4+parseInt(t(400))/5*(-parseInt(t(443))/6)+-parseInt(t(397))/7+-parseInt(t(452))/8*(parseInt(t(468))/9)+parseInt(t(402))/10*(parseInt(t(437))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(kt);class bt extends o.View{constructor(e,r,n=""){const i=mt;super(e),this[i(429)](i(471),!0),this[i(429)](i(453),!1),this[i(429)](i(405),""),this[i(429)](i(445),""),this[i(429)](i(393),!1),this[i(429)](i(415),le[i(423)]),this[i(424)]=new ct,this[i(455)]=new _e(e),this[i(416)]=new ke(e,n),this[i(416)][i(409)](i(453)).to(this),this[i(416)][i(409)](i(445)).to(this),this[i(406)]=this[i(465)](),this[i(406)][i(409)](i(415)).to(this),this[i(432)]=this[i(399)](),this[i(421)]=new t.FocusTracker,this[i(401)]=new t.KeystrokeHandler,this[i(474)]=this[i(462)]([this[i(416)],this[i(416)][i(407)],this[i(406)],this[i(432)]]),this[i(419)]=new o.FocusCycler({focusables:this[i(474)],focusTracker:this[i(421)],keystrokeHandler:this[i(401)],actions:{focusPrevious:i(454),focusNext:i(449)}}),this[i(419)][i(434)](this[i(432)][i(419)]),this[i(432)][i(436)][i(441)][i(409)](i(445)).to(this,i(405));const s=this[i(459)];this[i(464)]({tag:i(467),attributes:{class:["ck",i(412),r],tabindex:"-1"},children:[{tag:i(467),attributes:{class:["ck",i(426)]},children:[{tag:i(467),attributes:{class:[s.if(i(393),i(475),(e=>!e))]},children:[this[i(455)]]},this[i(416)],this[i(406)],this[i(432)]]}]})}[ft(460)](){const e=ft;super[e(460)](),this[e(421)][e(395)](this[e(416)][e(469)]),this[e(421)][e(395)](this[e(416)][e(407)][e(469)]),this[e(421)][e(395)](this[e(406)][e(469)]),this[e(421)][e(395)](this[e(432)][e(469)]),this[e(401)][e(398)](this[e(469)])}[ft(433)](e=1){const t=ft;-1===e?this[t(419)][t(413)]():this[t(419)][t(410)]()}[ft(477)](){const e=ft;this[e(405)]="",this[e(445)]="",this[e(393)]=!1,this[e(432)][e(477)](),this[e(416)][e(448)]=!1,this[e(406)][e(448)]=!1}[ft(399)](){const e=ft,t=this[e(470)],r=new Ee(t,{queryView:{label:J(t,e(408)),creator:o.createLabeledTextarea,showIcon:!1,showResetButton:!1},infoView:{text:{noSearchableItems:{primary:J(t,e(473)),secondary:J(t,e(463))}}},filteredView:this[e(461)](),queryMinChars:1/0,resetOnBlur:!1});return r[e(409)](e(471)).to(this,e(471),this,e(453),((e,t)=>e&&!t)),this[e(398)](r,e(478),((t,r)=>{const n=e;this[n(405)]=r;const o=pt(r);this[n(472)](n(444),o),r[n(456)]()&&this[n(424)][n(395)]({prompt:o},0)}),{priority:e(431)}),r}[ft(461)](){const e=ft,t=new Me(this[e(470)]);return t[e(446)][e(438)][e(404)](this[e(424)]).as(ot),t.on(e(427),(()=>{const t=e;this[t(424)][t(403)](),this[t(432)][t(442)](""),this[t(432)][t(433)]()})),t}[ft(465)](){const e=ft,t=new he(this[e(470)]);return t[e(451)][e(409)](e(471)).to(this,e(471),this,e(453),this,e(445),((e,t,r)=>e&&!t&&!!r)),t[e(451)][e(450)](e(476)).to(this,e(430)),t[e(428)][e(409)](e(471)).to(this,e(471),this,e(453),this,e(445),((e,t,r)=>e&&!t&&!!r)),t[e(428)][e(450)](e(476)).to(this,e(396)),t[e(418)][e(409)](e(471)).to(this,e(471),this,e(453),((e,t)=>e&&!t)),t[e(418)][e(450)](e(476)).to(this,e(422)),t[e(439)][e(409)](e(471)).to(this,e(453)),t[e(439)][e(450)](e(476)).to(this,e(435)),t}[ft(414)](){const e=ft;this[e(445)]="",this[e(393)]=!1,this[e(453)]=!0,this[e(416)][e(448)]=!0,this[e(406)][e(448)]=!0,this[e(416)][e(433)]()}[ft(425)](){const e=ft,t=this[e(470)];this[e(453)]=!1,this[e(405)]="",this[e(432)][e(477)](),this[e(445)]&&(this[e(432)][e(436)][e(417)]=J(t,e(458)))}[ft(447)](e){const t=ft,r=this[t(470)];this[t(425)](),this[t(393)]=!0,this[t(455)][t(440)]=e||J(r,t(420)),this[t(445)]||(this[t(416)][t(448)]=!1)}}const vt='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.346 9.422a.151.151 0 0 1 .284 0l.548 1.484a.152.152 0 0 0 .09.089l1.483.549a.151.151 0 0 1 0 .284l-1.483.548a.151.151 0 0 0-.09.09l-.548 1.483a.152.152 0 0 1-.142.1.151.151 0 0 1-.142-.1l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.15.15 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .089-.09l.549-1.483Z"/><path d="M16.306 1.742a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .089.09l1.483.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09l-.548 1.482a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .09-.089l.548-1.483Z"/><path d="M7.665 1.742a.151.151 0 0 1 .284 0l.549 1.483a.151.151 0 0 0 .09.09l1.482.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.151.151 0 0 0-.09.09L7.95 6.267a.151.151 0 0 1-.284 0l-.549-1.483a.151.151 0 0 0-.089-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.483-.549a.151.151 0 0 0 .09-.089l.548-1.483-.001.001Z"/><path d="M14.72 7.946a.848.848 0 0 0 .25-.591.824.824 0 0 0-.241-.588l-1.943-1.938a.812.812 0 0 0-.588-.241.838.838 0 0 0-.591.25l-1.545 1.539 3.115 3.115 1.542-1.546h.001Z"/><path clip-rule="evenodd" d="M1.19 15.636a.96.96 0 0 1 .281-.679l7.835-7.834 3.121 3.12-7.834 7.835a.959.959 0 0 1-1.358 0l-1.764-1.764a.96.96 0 0 1-.28-.678Zm9.22-5.391-1.121-1.12-6.479 6.478 1.121 1.121 6.479-6.479Z"/></svg>';var wt=r(379),yt={attributes:{"data-cke":!0}};yt.setAttributes=g(),yt.insert=d().bind(null,"head"),yt.domAPI=c(),yt.insertStyleElement=p();s()(wt.A,yt);wt.A&&wt.A.locals&&wt.A.locals;var _t=r(181),St={attributes:{"data-cke":!0}};St.setAttributes=g(),St.insert=d().bind(null,"head"),St.domAPI=c(),St.insertStyleElement=p();s()(_t.A,St);_t.A&&_t.A.locals&&_t.A.locals;var At=r(676),xt={attributes:{"data-cke":!0}};xt.setAttributes=g(),xt.insert=d().bind(null,"head"),xt.domAPI=c(),xt.insertStyleElement=p();s()(At.A,xt);At.A&&At.A.locals&&At.A.locals;var Et=r(331);const It=Ct;function Rt(){const e=["developmentLimit","_aiAdapter","plugins","AI Assistant","change:enabledCommandsIds","isFlat","tableOfContents","source","usageLimit","<p>","expired","delegate","licenseKey","aiLicenseKeyNotAllowed","722054ElnNYi","_licenseKeyCheckInterval","splice","aiAssistant","get","model","schema","evaluationLimit","config","pluginName","aiLicenseKeyUsageLimit","menuView","1338670zSXtid","updateView","125566THkvEe","panelView","command:","_initAriaAiStatusChangeAnnouncements","aiLicenseKeyDomainLimit","18RUdhSe","isOn","_aiAssistantController","_forceMarkersCopy","buttonView","getData","_initView","hideFakeVisualSelection","items","add","bind","requiresContent","isOfficialPlugin","getRanges","robotPencil","init","aiLicenseKeyInvalid","commands","editor","replace","change","map","ck-ai-assistant-button ","update","setSelection","once","reset","announce","execute","aiLicenseKeyExpired","updatePosition","getSelectedElement","trim","aiLicenseKeyValid","AIAssistant","change:isError","_uiCssClasses","listenTo","componentFactory","aiLicenseKeyTrialLimit","includes","aiLicenseKeyDevelopmentLimit","_populateMenuBarMenu","menuBar:aiCommands","view","ck-ai-commands-dropdown ","replaceContent","buttons","aiLicenseKeyEvaluationLimit","_onExecute","children","text","polite","_createAIAssistantUIButton","ai.aiAssistant.commands","selection","hideUI","change:value","186512JpzNnK","promptView","Generated content: %0","render","AI is writing","body","isCollapsed","ai.aiAssistant.contentAreaCssClass","sort","menuPanelClass","currentContext","359389CjRVWU","length","_commandDefinitions","text/html","label","contentArea","focus","isEnabled","showAIAssistant","isPremiumPlugin","menuitemcheckbox","EDITOR_TOP_SIDE","wasMoved","441FDHoIu","destroy","custom","show","addMany","_dialog","showFakeVisualSelection","1026831DXsBBx","getLimitElement","fieldView","menuBar:aiAssistant","ai.useTheme","getSelectedBlocks","aiCommands","</p>"," ck-ai-assistant-ui_theme","AI Commands","featureNotAllowed","showUI","locale","ai.aiAssistant.disabledElements","editing","requires","set","rawHtml","_getMenuBarGroupButtons","groupId","_showLicenseError","fire","groupLabel","AIAssistantUI","enabledCommandsIds","Error during AI content generation: %0","textAdapter","ai-commands-config-order-collision","forEach","queryView","comment","300092FQjfjM","document","change:isProcessing","copy","INSERT","prompt","values","errorView","push","REPLACE","ck-ai-assistant-ui","order","trialLimit","DataTransfer","filter","_getResolvedCommandsDefinitions","_formView","domainLimit","from","insertContent","insertContentBelow","invalid","hide","define","media"];return(Rt=function(){return e})()}!function(e){const t=Ct,r=e();for(;;)try{if(209250===parseInt(t(338))/1+parseInt(t(250))/2+parseInt(t(358))/3+parseInt(t(211))/4+parseInt(t(262))/5+parseInt(t(269))/6*(-parseInt(t(264))/7)+-parseInt(t(327))/8*(parseInt(t(351))/9))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Rt);const Pt=globalThis[It(224)];class Mt extends e.Plugin{static get[It(259)](){return It(203)}static get[It(281)](){return!0}static get[It(347)](){return!0}static get[It(195)](){return[Et.ClipboardMarkersUtils,V,Z,o.Dialog]}constructor(e){const t=It;super(e),this[t(305)]="",e[t(258)][t(234)](t(193),[t(235),t(197),t(242)]),e[t(258)][t(234)](t(334),""),e[t(258)][t(234)](t(362),!0),this[t(305)]=t(221)+(e[t(258)][t(254)](t(362))?t(188):"")}[It(284)](){const e=It,{editor:t}=this;this[e(237)]=t[e(238)][e(254)](Z),this[e(356)]=t[e(238)][e(254)](o.Dialog),this[e(227)]=null,this[e(340)]=this[e(226)]();const r=new ee(t,Array[e(229)](this[e(340)][e(217)]()));t[e(286)][e(278)](e(346),r),t.ui[e(307)][e(278)](e(186),(n=>{const i=e,s=(0,o.createDropdown)(n);return s[i(196)]({class:i(314)+this[i(305)]}),s[i(273)][i(196)]({label:J(n,i(189)),icon:vt,tooltip:!0}),s.on(i(297),(e=>this[i(318)](e[i(243)].id))),(0,o.addMenuToDropdown)(s,t.ui[i(313)][i(332)],function(e){const t=i,r=F(e[t(258)][t(254)](t(323)),e[t(192)]),n=Ot(e,r)[t(225)]((e=>e[t(286)][t(339)]));return 1===n[t(339)]?Ot(e,n[0][t(286)])[t(290)]((e=>({id:e.id,label:e[t(342)]}))):n[t(290)]((r=>{const n=t,{groupId:o,groupLabel:i,commands:s}=r;return{id:o,menu:i||o,children:Ot(e,s)[n(290)]((e=>({id:e.id,label:e[n(342)]})))}}))}(t),{ariaLabel:J(n,i(189))}),s[i(261)][i(336)]=i(314)+this[i(305)],r.on(i(240),a),s[i(261)][i(294)](i(330),a),s;function a(){const e=i;s[e(345)]=r[e(204)][e(339)]>0;for(const t of s[e(261)][e(316)])t[e(345)]=r[e(204)][e(309)](t.id)}})),t.ui[e(307)][e(278)](e(312),(n=>{const i=e,s=new o.MenuBarMenuView(n);s[i(273)][i(196)]({label:J(n,i(189)),icon:vt}),s[i(279)](i(345)).to(r,i(204),(e=>e[i(339)]>0));const a=F(t[i(258)][i(254)](i(323)),n);return this[i(311)](r,s,a,(e=>this[i(318)](e))),s})),t.ui[e(307)][e(278)](e(253),(()=>{const t=e,r=this[t(322)](o.ButtonView);return r[t(196)]({tooltip:!0,class:t(291)+this[t(305)]}),r})),t.ui[e(307)][e(278)](e(361),(()=>{const t=e,r=this[t(322)](o.MenuBarMenuListItemButtonView);return r[t(196)]({role:t(348)}),r})),this[e(248)]=this[e(287)][e(258)][e(254)](e(248));const n=this[e(287)];this[e(251)]=setInterval((()=>{const t=e;let r;for(const e in n){const o=e,i=n[o];if(t(302)==i||t(285)==i||t(298)==i||t(268)==i||t(249)==i||t(317)==i||t(308)==i||t(310)==i||t(260)==i){delete n[o],r=i,clearInterval(this[t(251)]),this[t(251)]=void 0;break}}t(285)==r&&n[t(200)](t(232)),t(298)==r&&n[t(200)](t(246)),t(268)==r&&n[t(200)](t(228)),t(249)==r&&n[t(200)](t(190),t(303)),t(317)==r&&n[t(200)](t(257)),t(308)==r&&n[t(200)](t(223)),t(310)==r&&n[t(200)](t(236)),t(260)==r&&n[t(200)](t(244))}),1e3)}[It(352)](){const e=It;super[e(352)](),this[e(251)]&&clearInterval(this[e(251)])}[It(191)](e="",t="",r=It(353)){const n=It,i=this[n(287)],s=i[n(194)][n(313)],a=i[n(238)][n(254)](V),c=i[n(238)][n(254)](Et.ClipboardMarkersUtils);a[n(357)]();const u=new Pt,d=new ClipboardEvent(n(214),{clipboardData:u}),l=new ne.DataTransfer(u),g=new ne.DomEventData(s,d,{dataTransfer:l});c[n(272)](n(210),(()=>{const e=n;s[e(212)][e(201)](e(214),g)})),this[n(227)]||(this[n(275)](),this[n(271)]=new ce(i,this[n(237)][n(206)],this[n(227)]));let h=l[n(274)](n(341));const p=i[n(255)][n(212)][n(324)],f=Array[n(229)](p[n(282)]());1===f[n(339)]&&f[0][n(241)]&&!p[n(300)]()&&""!==h[n(288)](/ /g,"")[n(301)]()&&(h=n(245)+h+n(187)),this[n(271)][n(263)]({actionId:r,query:e,htmlContent:h,label:t,mainActionLabel:le[i[n(255)][n(212)][n(324)][n(333)]?n(215):n(220)]}),n(253)!==this[n(356)].id?this[n(356)][n(354)]({id:n(253),icon:D[n(283)],title:J(this[n(287)][n(192)],n(239)),content:this[n(227)],position:o.DialogViewPosition[n(349)],onShow:()=>{const e=n;this[e(227)][e(344)]()},onHide:()=>{const e=n;this[e(271)][e(295)](),a[e(276)]()}}):this[n(356)][n(313)][n(350)]||this[n(356)][n(313)][n(299)]()}[It(325)](){const e=It;this[e(356)][e(233)]()}[It(226)](){const e=It,t=new Map,r=F(this[e(287)][e(258)][e(254)](e(323)),this[e(287)][e(192)]);for(const n of r)for(const r of n[e(286)])t[e(196)](r.id,{...r,groupId:n[e(199)],groupLabel:n[e(202)]||n[e(199)]});return t}[It(322)](e){const t=It,r=this[t(287)],n=r[t(286)][t(254)](t(346)),o=new e(r[t(192)]);return o[t(196)]({label:J(r[t(192)],t(239)),icon:D[t(283)],isToggleable:!0}),o[t(279)](t(345)).to(n),o[t(279)](t(270)).to(this[t(356)],"id",(e=>t(253)===e)),this[t(306)](o,t(297),(()=>{const e=t;o[e(270)]?this[e(325)]():n[e(297)]()})),o}[It(275)](){const e=It,t=this[e(287)][e(238)][e(254)](V);this[e(227)]=new bt(this[e(287)][e(192)],this[e(305)],this[e(287)][e(258)][e(254)](e(334))),this[e(227)].on(e(326),(()=>{const t=e;this[t(356)][t(313)][t(350)]||this[t(356)][t(313)][t(299)]()})),this[e(227)][e(328)][e(209)][e(360)].on(e(292),(()=>{const t=e;this[t(356)][t(313)][t(350)]||this[t(356)][t(313)][t(299)]()})),this[e(306)](this[e(227)],e(315),(()=>{const r=e;t[r(230)](this[r(271)][r(337)]),this[r(325)]()})),this[e(306)](this[e(227)],e(231),(()=>{const r=e;t[r(231)](this[r(271)][r(337)]),this[r(325)]()})),this[e(267)]()}[It(267)](){const e=It,{locale:t,ui:{ariaLiveAnnouncer:r}}=this[e(287)];this[e(227)][e(343)].on(e(213),((n,o,i)=>{const s=e,a=this[s(271)][s(337)];i?r[s(296)](J(t,s(331))):a&&r[s(296)](J(t,s(329),a),{politeness:s(321),isUnsafeHTML:!0})})),this[e(227)].on(e(304),((n,o,i)=>{const s=e;if(i){const e=this[s(227)][s(218)][s(320)];r[s(296)](J(t,s(205),e))}}))}[It(318)](e){const r=It,n=this[r(340)][r(254)](e),o=this[r(287)],i=o[r(255)][r(212)][r(324)],s=o[r(286)][r(254)](r(346)),a=o[r(238)][r(254)](V),c=("_ungrouppedCommands"!==n[r(199)]?n[r(202)]+": ":"")+n[r(342)];if(!1!==n[r(280)]&&i[r(333)]){const e=(0,t.first)(i[r(363)]())||o[r(255)][r(256)][r(359)](i);o[r(255)][r(289)]((t=>{t[r(293)](e,"in")}))}a[r(357)](),s[r(297)](n[r(216)],c,r(266)+e)}[It(311)](e,t,r,n){const i=It,s=this[i(287)],a=s[i(192)],c=new o.MenuBarMenuListView(a),u=Ot(s,r)[i(225)]((e=>e[i(286)][i(339)]));1===u[i(339)]?this[i(198)]({command:e,commands:u[0][i(286)],parentMenuView:t,onExecute:n})[i(208)]((e=>c[i(277)][i(278)](e))):u[i(208)]((({groupId:r,groupLabel:s,commands:u})=>{const d=i,l=new o.MenuBarMenuListItemView(a,t),g=new o.MenuBarMenuView(a),h=new o.MenuBarMenuListView(a),p=this[d(198)]({command:e,commands:u,parentMenuView:g,onExecute:n});g[d(273)][d(196)]({label:s||r}),g[d(247)](d(297)).to(t),h[d(277)][d(355)](p),g[d(265)][d(319)][d(278)](h),l[d(319)][d(278)](g),c[d(277)][d(278)](l)})),t[i(265)][i(319)][i(278)](c)}[It(198)]({command:e,commands:t,parentMenuView:r,onExecute:n}){const i=It,s=this[i(287)],a=s[i(192)];return Ot(s,t)[i(290)]((t=>{const s=i,c=new o.MenuBarMenuListItemView(a,r),u=new o.MenuBarMenuListItemButtonView(a);return u[s(196)]({label:t[s(342)]}),u[s(247)](s(297)).to(r),u.on(s(297),(()=>n(t.id))),u[s(279)](s(345)).to(e,s(204),(e=>e[s(309)](t.id))),c[s(319)][s(278)](u),c}))}}function Ct(e,t){const r=Rt();return(Ct=function(e,t){return r[e-=186]})(e,t)}function Tt(e,t){const r=It;return void 0!==e[r(222)]&&void 0===t[r(222)]?1:void 0===e[r(222)]&&void 0!==t[r(222)]?-1:void 0!==e[r(222)]&&void 0!==t[r(222)]?e[r(222)]-t[r(222)]:0}function Ot(e,r){const n=It;r[n(335)](Tt);const o={},i=[];for(const s of r)if(void 0!==s[n(222)]){if(s[n(222)]in o)throw new t.CKEditorError(n(207),e,{conflictingDefinitions:[s,o[s[n(222)]]]});o[s[n(222)]]=s,i[n(252)](s[n(222)],0,s)}else i[n(219)](s);return i}const Lt=$t;!function(e){const t=$t,r=e();for(;;)try{if(763172===parseInt(t(448))/1*(parseInt(t(497))/2)+parseInt(t(435))/3+parseInt(t(432))/4*(-parseInt(t(409))/5)+-parseInt(t(474))/6*(parseInt(t(509))/7)+parseInt(t(440))/8+-parseInt(t(427))/9*(-parseInt(t(501))/10)+-parseInt(t(490))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Bt);class Nt extends e.Plugin{static get[Lt(457)](){return[Mt,V]}static get[Lt(510)](){return Lt(426)}static get[Lt(434)](){return!0}static get[Lt(454)](){return!0}constructor(e){const t=Lt;super(e);const r=e[t(486)],n=e[t(421)];r[t(453)](t(473),function(e){const t=Lt;return[{groupId:t(496),groupLabel:J(e,t(451)),commands:[{id:t(414),label:J(e,t(493)),prompt:t(415)},{id:t(456),label:J(e,t(449)),prompt:t(505)},{id:t(495),label:J(e,t(437)),prompt:t(465)},{id:t(483),label:J(e,t(430)),prompt:t(431)}]},{groupId:t(502),groupLabel:J(e,t(422)),commands:[{id:t(403),label:J(e,t(489)),prompt:t(481)},{id:t(466),label:J(e,t(504)),prompt:t(478)}]},{groupId:t(445),groupLabel:J(e,t(488)),commands:[{id:t(472),label:J(e,t(480)),prompt:t(470)},{id:t(503),label:J(e,t(467)),prompt:t(500)},{id:t(450),label:J(e,t(411)),prompt:t(416)},{id:t(424),label:J(e,t(428)),prompt:t(494)},{id:t(443),label:J(e,t(452)),prompt:t(441)}]},{groupId:t(447),groupLabel:J(e,t(458)),commands:[{id:t(459),label:J(e,t(498)),prompt:t(499)},{id:t(464),label:J(e,t(405)),prompt:t(484)},{id:t(511),label:J(e,t(491)),prompt:t(469)},{id:t(476),label:J(e,t(404)),prompt:t(442)}]},{groupId:t(475),groupLabel:J(e,t(471)),commands:[{id:t(460),label:J(e,t(425)),prompt:t(407)},{id:t(446),label:J(e,t(436)),prompt:t(461)},{id:t(506),label:J(e,t(508)),prompt:t(401)},{id:t(487),label:J(e,t(413)),prompt:t(412)},{id:t(439),label:J(e,t(468)),prompt:t(417)},{id:t(433),label:J(e,t(418)),prompt:t(420)},{id:t(482),label:J(e,t(463)),prompt:t(406)},{id:t(402),label:J(e,t(408)),prompt:t(479)}]}]}(n)),r[t(453)](t(410),[]),r[t(453)](t(429),[]);const o=F(r[t(507)](t(473)),n),i=r[t(507)](t(410)),s=r[t(507)](t(429));i[t(455)]((e=>{const r=t,n=o[r(423)]((t=>t[r(477)]===e[r(477)]));n?n[r(492)]=n[r(492)][r(444)](e[r(492)]):o[r(438)](e)})),o[t(455)]((e=>{const r=t;e[r(492)]=e[r(492)][r(462)]((e=>!s[r(419)](e.id)))})),r[t(485)](t(473),o)}}function $t(e,t){const r=Bt();return($t=function(e,t){return r[e-=401]})(e,t)}function Bt(){const e=["translateChinese","isOfficialPlugin","2370072OfDcdA","Spanish","Make longer","push","translateFrench","4888872dLzFrq","Improve using friendly, comforting language, to convey understanding and empathy.","Rewrite this content as a poem using poetic techniques without losing the original meaning.","friendly","concat","changeTone","translateSpanish","changeStyle","79ApmabT","Make shorter","direct","Edit or review","Friendly","define","isPremiumPlugin","forEach","makeShorter","requires","Change style","business","translateEnglish","Translate the content to Spanish language.","filter","Hindi","legal","Improve this content by using descriptive language and inserting more information and more detailed explanations.","continue","Casual","French","Rewrite this content as a journalist using engaging language to convey the importance of the information.","Improve using polished, formal, and respectful language to convey professional expertise and competence.","Translate","professional","ai.aiAssistant.commands","6tybKNd","translate","poetic","groupId","Start with the provided content and write at the end of it continuing this topic. Keep the added part short.","Translate the content to Arabic language.","Professional","Summarize this content into one paragraph of text. Include only the key ideas and conclusions. Keep it short. Do not keep original text formatting.","translateHindi","simplifyLanguage","Rewrite this content as a legal professional using valid legal terminology.","set","config","translateGerman","Change tone","Summarize","14082409KbAVGe","Journalism","commands","Improve writing","Improve using compelling, optimistic language to convey confidence in the writing.","makeLonger","editOrReview","10866hyWTFU","Business","Rewrite this content as a business professional with formal language.","Improve using casual, informal language to convey a casual conversation with a real person.","10coYffl","generate","casual","Continue","Remove any repetitive, redundant, or non-essential writing in this content without changing the meaning or losing any key information.","translatePortuguese","get","Portuguese","1085735MmkOhv","pluginName","journalism","Translate the content to Portuguese language.","translateArabic","summarize","Poetic","Legal","Translate the content to Hindi language.","Translate the content to English language.","Arabic","1795pJHumf","ai.aiAssistant.extraCommandGroups","Direct","Translate the content to German language.","German","improveWriting","Fix spelling mistakes, use proper grammar and apply good writing practices. Do not lose the original meaning.","Improve using direct language, using only the essential information.","Translate the content to French language.","Simplified Chinese","includes","Translate the content to Simplified Chinese language.","locale","Generate from selection","find","confident","English","AIAssistant","13145337EtggUl","Confident","ai.aiAssistant.removeCommands","Simplify language","Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand.","12172gEtGBR"];return(Bt=function(){return e})()}const Ut=Dt;function Dt(e,t){const r=Ft();return(Dt=function(e,t){return r[e-=137]})(e,t)}function Ft(){const e=["74991ESsFdP","abort","resolve","871910rwsBJq","180836bxrBlc","reject","error","catch","locale","2982rLwnYk","plugins","get","AI_ERROR_GET_HEADERS","sendRequest","requires","application/json","2oRkjsH","editor","530190NCfBWi","aitextadapter-send-request-failed","6wOjKFE","makeRequest","abortController","assign","AbortError","AI_ERROR_GET_PARAMETERS","2912iaOLPb","aborted","signal","name","1061236YgIUrK","_prepareRequestParameters","textAdapter","135453aakZHx","object","20djnxxY","init","_prepareRequestHeaders"];return(Ft=function(){return e})()}!function(e){const t=Dt,r=e();for(;;)try{if(153639===parseInt(t(151))/1+parseInt(t(172))/2*(-parseInt(t(156))/3)+parseInt(t(160))/4+-parseInt(t(159))/5*(-parseInt(t(138))/6)+-parseInt(t(165))/7*(parseInt(t(144))/8)+-parseInt(t(174))/9*(parseInt(t(153))/10)+parseInt(t(148))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ft);class jt extends e.Plugin{static get[Ut(170)](){return[Z]}constructor(e){const t=Ut;super(e),this[t(140)]=new AbortController}[Ut(154)](){const e=Ut;this[e(173)][e(166)][e(167)](Z)[e(150)]=this}[Ut(157)](){const e=Ut;this[e(140)][e(146)][e(145)]||(this[e(140)][e(157)](),this[e(140)]=new AbortController)}async[Ut(139)](e){const r=Ut;return this[r(169)](e)[r(163)]((e=>{const n=r;if(e instanceof Q)return Promise[n(161)](e);if(n(142)==e[n(147)])return Promise[n(158)]();throw console[n(162)](e),new t.CKEditorError(n(137),null)}))}async[Ut(155)](e,t){const r=Ut,n=this[r(173)][r(164)],o={"Content-Type":r(171)};if(r(152)==typeof e)Object[r(141)](o,e);else if(e)try{const n=await e(t);Object[r(141)](o,n)}catch(e){return Promise[r(161)](new Q(J(n,r(168))))}return o}async[Ut(149)](e,t){const r=Ut,n=this[r(173)][r(164)];if(r(152)==typeof e)return e;try{return await e(t)}catch(e){return Promise[r(161)](new Q(J(n,r(143))))}}}const Ht=qt;function qt(e,t){const r=Vt();return(qt=function(e,t){return r[e-=344]})(e,t)}function Vt(){const e=["stringify","locale","_readStaticResponse","filter","map","1141155grbMtl","data: ","1337090rVMDWX","text","content","getReader","get","context_length_exceeded","90154QNeARM","765aZfhYv","message","join","replace","define","includes","decode","stream","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","user","ai.openAI.apiUrl","pluginName","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","abortController","delta","OpenAITextAdapter","\nYou must keep the text formatting.\n\nContent:\n","resolve","body","reject","7QyDRhZ","_cleanUpData","_apiUrl","_readStreamableResponse","_requestParameters","choices","prepareMessages","_prepareRequestParameters","split","_prepareRequestHeaders","3444ndupfu","gpt-3.5-turbo","222916MlnOoW","signal","ai.openAI.requestParameters","_requestHeaders","Moderation","[DONE]","https://api.openai.com/v1/chat/completions","15fszKgl","editor","length","parse","_isBufferIncomplete","AI_ERROR_CONTEXT_LENGTH","ai.openAI.requestHeaders","1643176fKwvPy","config","sendRequest","system","read","AI_ERROR_MODERATION","Instruction:\n","POST","13101cvdAHh","json"];return(Vt=function(){return e})()}!function(e){const t=qt,r=e();for(;;)try{if(123840===-parseInt(t(384))/1+parseInt(t(399))/2*(parseInt(t(369))/3)+-parseInt(t(362))/4+-parseInt(t(400))/5*(parseInt(t(360))/6)+parseInt(t(350))/7*(-parseInt(t(376))/8)+parseInt(t(391))/9+parseInt(t(393))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Vt);class zt extends jt{static get[Ht(411)](){return Ht(345)}constructor(e){const t=Ht;super(e),e[t(377)][t(404)](t(410),t(368)),e[t(377)][t(397)](t(364))||e[t(377)][t(404)](t(364),{model:t(361),max_tokens:2e3,temperature:1,top_p:1,stream:!0}),this[t(352)]=e[t(377)][t(397)](t(410)),this[t(365)]=e[t(377)][t(397)](t(375))||{},this[t(354)]=e[t(377)][t(397)](t(364))}async[Ht(378)]({query:e,context:t,onData:r,actionId:n}){const o=Ht,i=this[o(370)][o(387)],s=await this[o(356)](e,t,n),a=await this[o(359)](this[o(365)],n),c=await this[o(357)](this[o(354)],n),u={messages:s,...c},d={method:o(383),headers:a,body:JSON[o(386)](u),signal:this[o(413)][o(363)]},l=await fetch(this[o(352)],d);if(l.ok)return c[o(407)]?await this[o(353)](l,r):await this[o(388)](l,r),Promise[o(347)]();{const e=await l[o(394)]();return e[o(405)](o(398))?Promise[o(349)](new Q(J(i,o(374)))):e[o(405)](o(366))?Promise[o(349)](new Q(J(i,o(381)))):Promise[o(349)](new Error(e))}}async[Ht(356)](e,t,r){const n=Ht;let o,i;return t?(o=n(412),i=n(382)+e+n(346)+t):(o=n(408),i=e),[{role:n(379),content:o},{role:n(409),content:i}]}async[Ht(353)](e,t){const r=Ht,n=e[r(348)][r(396)](),o=new TextDecoder;let i="",s="",a="",c=!1;for(;!c;){const{done:e,value:u}=await n[r(380)](),d=i+o[r(406)](u);let l="";c=e;try{l=this[r(351)](d),i=""}catch(e){i=d;continue}s+=l,!c&&this[r(373)](s)||s&&(a+=s,s="",t(a))}return Promise[r(347)]()}async[Ht(388)](e,t){const r=Ht;return t((await e[r(385)]())[r(355)][0][r(401)][r(395)]),Promise[r(347)]()}[Ht(373)](e){const t=Ht,r=e[t(358)]("<")[t(371)]!==e[t(358)](">")[t(371)],n=e[t(371)]<30;return r&&n}[Ht(351)](e){const t=Ht;return e[t(358)](/\n(?![^{]*\})/g)[t(390)]((e=>e[t(403)](t(392),"")))[t(389)]((e=>e&&e[t(371)]>0&&t(367)!==e))[t(390)]((e=>{const r=t,{choices:n}=JSON[r(372)](e);if(n[0]&&n[0][r(344)]&&n[0][r(344)][r(395)])return n[0][r(344)][r(395)]}))[t(389)]((e=>e))[t(402)]("")}}const Gt=e=>{let t=e.httpHandler;return{setHttpHandler(e){t=e},httpHandler:()=>t,updateHttpClientConfig(e,r){t.updateHttpClientConfig(e,r)},httpHandlerConfigs:()=>t.httpHandlerConfigs()}};var Wt,Zt,Kt,Qt;!function(e){e.HEADER="header",e.QUERY="query"}(Wt||(Wt={})),function(e){e.HEADER="header",e.QUERY="query"}(Zt||(Zt={})),function(e){e.HTTP="http",e.HTTPS="https"}(Kt||(Kt={})),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(Qt||(Qt={}));var Jt;!function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"}(Jt||(Jt={}));const Yt="__smithy_context";var Xt,er;!function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"}(Xt||(Xt={})),function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(er||(er={}));class tr{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new tr({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce(((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}}),{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return tr.clone(this)}}class rr{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const nr={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},or=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!tr.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)})(e),nr)}}),ir={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},sr="X-Amzn-Trace-Id",ar={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},cr=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:n}=r;if(!tr.isInstance(n)||"node"!==e.runtime||n.headers.hasOwnProperty(sr))return t(r);const o=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,s=e=>"string"==typeof e&&e.length>0;return s(o)&&s(i)&&(n.headers[sr]=i),t({...r,request:n})})(e),ar)}});const ur=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),dr=e=>ur.test(e)||e.startsWith("[")&&e.endsWith("]"),lr=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),gr=(e,t=!1)=>{if(!t)return lr.test(e);const r=e.split(".");for(const e of r)if(!gr(e))return!1;return!0},hr={},pr="endpoints";function fr(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${fr(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(fr).join(", ")})`:JSON.stringify(e,null,2)}class mr extends Error{constructor(e){super(e),this.name="EndpointError"}}const kr=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new mr(`Path: '${e}' does not end with ']'`);const o=n.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new mr(`Invalid array index: '${o}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(o)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new mr(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e),br={[Kt.HTTP]:80,[Kt.HTTPS]:443},vr={booleanEquals:(e,t)=>e===t,getAttr:kr,isSet:e=>null!=e,isValidHostLabel:gr,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:o="",query:i={}}=e,s=new URL(`${n}//${t}${r?`:${r}`:""}${o}`);return s.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),s}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:o,pathname:i,protocol:s,search:a}=t;if(a)return null;const c=s.slice(0,-1);if(!Object.values(Kt).includes(c))return null;const u=dr(o);return{scheme:c,authority:`${n}${r.includes(`${n}:${br[c]}`)||"string"==typeof e&&e.includes(`${n}:${br[c]}`)?`:${br[c]}`:""}`,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:u}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},wr=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let o=0;for(;o<e.length;){const t=e.indexOf("{",o);if(-1===t){r.push(e.slice(o));break}r.push(e.slice(o,t));const i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),o=i+2);const s=e.substring(t+1,i);if(s.includes("#")){const[e,t]=s.split("#");r.push(kr(n[e],t))}else r.push(n[s]);o=i+1}return r.join("")},yr=(e,t,r)=>{if("string"==typeof e)return wr(e,r);if(e.fn)return _r(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new mr(`'${t}': ${String(e)} is not a string, function or reference.`)},_r=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:yr(e,"arg",r))),o=e.split(".");return o[0]in hr&&null!=o[1]?hr[o[0]][o[1]](...n):vr[e](...n)},Sr=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new mr(`'${e}' is already defined in Reference Record.`);const n=_r(t,r);return r.logger?.debug?.(`${pr} evaluateCondition: ${fr(t)} = ${fr(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},Ar=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:o}=Sr(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};o&&(r[o.name]=o.value,t.logger?.debug?.(`${pr} assign: ${o.name} := ${fr(o.value)}`))}return{result:!0,referenceRecord:r}},xr=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=yr(e,"Header value entry",t);if("string"!=typeof n)throw new mr(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),Er=(e,t)=>{if(Array.isArray(e))return e.map((e=>Er(e,t)));switch(typeof e){case"string":return wr(e,t);case"object":if(null===e)throw new mr(`Unexpected endpoint property: ${e}`);return Ir(e,t);case"boolean":return e;default:throw new mr("Unexpected endpoint property type: "+typeof e)}},Ir=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:Er(n,t)})),{}),Rr=(e,t)=>{const r=yr(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new mr("Endpoint URL must be a string, got "+typeof r)},Pr=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:o,referenceRecord:i}=Ar(r,t);if(!o)return;const s={...t,referenceRecord:{...t.referenceRecord,...i}},{url:a,properties:c,headers:u}=n;return t.logger?.debug?.(`${pr} Resolving endpoint from template: ${fr(n)}`),{...null!=u&&{headers:xr(u,s)},...null!=c&&{properties:Ir(c,s)},url:Rr(a,s)}},Mr=(e,t)=>{const{conditions:r,error:n}=e,{result:o,referenceRecord:i}=Ar(r,t);if(o)throw new mr(yr(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},Cr=(e,t)=>{const{conditions:r,rules:n}=e,{result:o,referenceRecord:i}=Ar(r,t);if(o)return Tr(n,{...t,referenceRecord:{...t.referenceRecord,...i}})},Tr=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=Pr(r,t);if(e)return e}else if("error"===r.type)Mr(r,t);else{if("tree"!==r.type)throw new mr(`Unknown endpoint rule: ${r}`);{const e=Cr(r,t);if(e)return e}}throw new mr("Rules evaluation failed")},Or=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!Or(t))return!1;return!0}return!!gr(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!dr(e)))};let Lr=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"ca-west-1":{"description":"Canada West (Calgary)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{"eu-isoe-west-1":{"description":"EU ISOE West"}}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}'),Nr="";const $r={isVirtualHostableS3Bucket:Or,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,o,i,s,...a]=t;return"arn"!==r||""===n||""===o||""===a[0]?null:{partition:n,service:o,region:i,accountId:s,resourceId:a[0].includes("/")?a[0].split("/"):a}},partition:e=>{const{partitions:t}=Lr;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,o]of Object.entries(t))if(r===e)return{...n,...o}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}}};hr.aws=$r;const Br="user-agent",Ur="x-amz-user-agent",Dr=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,Fr=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,jr=e=>(t,r)=>async n=>{const{request:o}=n;if(!tr.isInstance(o))return t(n);const{headers:i}=o,s=r?.userAgent?.map(Hr)||[],a=(await e.defaultUserAgentProvider()).map(Hr),c=e?.customUserAgent?.map(Hr)||[],u=(Nr?[Nr]:[]).concat([...a,...s,...c]).join(" "),d=[...a.filter((e=>e.startsWith("aws-sdk-"))),...c].join(" ");return"browser"!==e.runtime?(d&&(i[Ur]=i[Ur]?`${i[Br]} ${d}`:d),i[Br]=u):i[Ur]=u,t({...n,request:o})},Hr=e=>{const t=e[0].split("/").map((e=>e.replace(Dr,"-"))).join("/"),r=e[1]?.replace(Fr,"-"),n=t.indexOf("/"),o=t.substring(0,n);let i=t.substring(n+1);return"api"===o&&(i=i.toLowerCase()),[o,i,r].filter((e=>e&&e.length>0)).reduce(((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},qr={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var Vr;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(Vr||(Vr={}));const zr=e=>e[Yt]||(e[Yt]={}),Gr=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},Wr=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),Zr=e=>Wr(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const Kr=(e,t)=>(r,n)=>async o=>{const i=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,n,o.input)),s=function(e){const t=new Map;for(const r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),a=zr(n),c=[];for(const r of i){const o=s.get(r.schemeId);if(!o){c.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}const i=o.identityProvider(await t.identityProviderConfigProvider(e));if(!i){c.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:u={},signingProperties:d={}}=r.propertiesExtractor?.(e,n)||{};r.identityProperties=Object.assign(r.identityProperties||{},u),r.signingProperties=Object.assign(r.signingProperties||{},d),a.selectedHttpAuthScheme={httpAuthOption:r,identity:await i(r.identityProperties),signer:o.signer};break}if(!a.selectedHttpAuthScheme)throw new Error(c.join("\n"));return r(o)},Qr={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Jr={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Yr={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Xr(e,t,r){return{applyToStack:n=>{n.add(((e,t)=>r=>async n=>{const{response:o}=await r(n);try{return{response:o,output:await t(o,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:o}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t,void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText)}throw e}})(e,r),Jr),n.add(((e,t)=>(r,n)=>async o=>{const i=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const s=await t(o.input,{...e,endpoint:i});return r({...o,request:s})})(e,t),Yr)}}}const en=e=>e=>{throw e},tn=(e,t)=>{},rn={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},nn=e=>({applyToStack:e=>{e.addRelativeTo(((e,t)=>async r=>{if(!tr.isInstance(r.request))return e(r);const n=zr(t).selectedHttpAuthScheme;if(!n)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:o={}},identity:i,signer:s}=n,a=await e({...r,request:await s.sign(r.request,i,o)}).catch((s.errorHandler||en)(o));return(s.successHandler||tn)(a.response,o),a}),rn)}}),on=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},sn={},an=new Array(64);for(let e=0,t="A".charCodeAt(0),r="Z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t);sn[r]=e,an[e]=r}for(let e=0,t="a".charCodeAt(0),r="z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t),n=e+26;sn[r]=n,an[n]=r}for(let e=0;e<10;e++){sn[e.toString(10)]=e+52;const t=e.toString(10),r=e+52;sn[t]=r,an[r]=t}sn["+"]=62,an[62]="+",sn["/"]=63,an[63]="/";const cn=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,o=0;for(let n=t,i=t+3;n<=i;n++)if("="!==e[n]){if(!(e[n]in sn))throw new TypeError(`Invalid character ${e[n]} in base64 string.`);r|=sn[e[n]]<<6*(i-n),o+=6}else r>>=6;const i=t/4*3;r>>=o%8;const s=Math.floor(o/8);for(let e=0;e<s;e++){const t=8*(s-e-1);n.setUint8(i+e,(r&255<<t)>>t)}}return new Uint8Array(r)},un=e=>(new TextEncoder).encode(e);function dn(e){let t;t="string"==typeof e?un(e):e;const r="object"==typeof t&&"number"==typeof t.length,n="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let e=0;e<t.length;e+=3){let r=0,n=0;for(let o=e,i=Math.min(e+3,t.length);o<i;o++)r|=t[o]<<8*(i-o-1),n+=8;const i=Math.ceil(n/6);r<<=6*i-n;for(let e=1;e<=i;e++){const t=6*(i-e);o+=an[(r&63<<t)>>t]}o+="==".slice(0,4-i)}return o}const ln=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};class gn extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return function(e,t){return"base64"===t?gn.mutate(cn(e)):gn.mutate(un(e))}(e,t);throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,gn.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?dn(e):ln(e)}(this,e)}}const hn={},pn={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),hn[e]=t,pn[t]=e}function fn(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in pn))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=pn[n]}return t}function mn(e){let t="";for(let r=0;r<e.byteLength;r++)t+=hn[e[r]];return t}"function"==typeof ReadableStream&&ReadableStream;const kn=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return gn.mutate(e);if(!e)return gn.mutate(new Uint8Array);const r=t.streamCollector(e);return gn.mutate(await r)};function bn(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function vn(e,t){return new wn(e,t)}class wn{constructor(e,t){this.input=e,this.context=t,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:e,protocol:t="https",port:r,path:n}=await this.context.endpoint();this.path=n;for(const e of this.resolvePathStack)e(this.path);return new tr({protocol:t,hostname:this.hostname||e,port:r,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e})),this}p(e,t,r,n){return this.resolvePathStack.push((o=>{this.path=((e,t,r,n,o,i)=>{if(null==t||void 0===t[r])throw new Error("No value provided for input HTTP label: "+r+".");{const t=n();if(t.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");e=e.replace(o,i?t.split("/").map((e=>bn(e))).join("/"):bn(t))}return e})(o,this.input,e,t,r,n)})),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}class yn{constructor(e){this.authSchemes=new Map;for(const[t,r]of Object.entries(e))void 0!==r&&this.authSchemes.set(t,r)}getIdentityProvider(e){return this.authSchemes.get(e)}}const _n=(Sn=3e5,e=>An(e)&&e.expiration.getTime()-Date.now()<Sn);var Sn;const An=e=>void 0!==e.expiration,xn="content-length";const En={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},In=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const n=t.request;if(tr.isInstance(n)){const{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(xn))try{const t=r(e);n.headers={...n.headers,[xn]:String(t)}}catch(e){}}return e({...t,request:n})}),En)}}),Rn=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Pn=/(\d+\.){3}\d+/,Mn=/\.\./,Cn=e=>Rn.test(e)&&!Pn.test(e)&&!Mn.test(e),Tn=e=>{const[t,r,n,,,o]=e.split(":"),i="arn"===t&&e.split(":").length>=6,s=Boolean(i&&r&&n&&o);if(i&&!s)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return s},On=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:o}=e;return`${t}//${r}${n?":"+n:""}${o}`}}return e}:n},Ln=async e=>{};const Nn=e=>{if("string"==typeof e)return Nn(new URL(e));const{hostname:t,pathname:r,port:n,protocol:o,search:i}=e;let s;return i&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(i)),{hostname:t,port:n?parseInt(n):void 0,protocol:o,path:r,query:s}},$n=e=>"object"==typeof e?"url"in e?Nn(e.url):e:Nn(e),Bn=async(e,t,r)=>{const n={},o=t?.getEndpointParameterInstructions?.()||{};for(const[t,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[t]=i.value;break;case"contextParams":n[t]=e[i.name];break;case"clientContextParams":case"builtInParams":n[t]=await On(i.name,t,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(o).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Tn(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Cn(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n},Un=({config:e,instructions:t})=>(r,n)=>async o=>{e.endpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(n,"ENDPOINT_OVERRIDE","N");const i=await(async(e,t,r,n)=>{if(!r.endpoint){let e;e=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await Ln(r.serviceId),e&&(r.endpoint=()=>Promise.resolve($n(e)))}const o=await Bn(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(o,n)})(o.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;const s=n.authSchemes?.[0];if(s){n.signing_region=s.signingRegion,n.signing_service=s.signingName;const e=zr(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...o})},Dn={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Yr.name},Fn=(e,t)=>({applyToStack:r=>{r.addRelativeTo(Un({config:e,instructions:t}),Dn)}});var jn;!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(jn||(jn={}));const Hn=jn.STANDARD,qn=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Vn=["TimeoutError","RequestTimeout","RequestTimeoutException"],zn=[500,502,503,504],Gn=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Wn=e=>429===e.$metadata?.httpStatusCode||qn.includes(e.name)||1==e.$retryable?.throttling,Zn=e=>(e=>e.$metadata?.clockSkewCorrected)(e)||Vn.includes(e.name)||Gn.includes(e?.code||"")||zn.includes(e.$metadata?.httpStatusCode||0);class Kn{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>Kn.setTimeoutFn(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),Wn(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}Kn.setTimeoutFn=setTimeout;const Qn=100,Jn=2e4,Yn="amz-sdk-invocation-id",Xn="amz-sdk-request",eo=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(Jn,e),getRetryCost:()=>r});class to{constructor(e){this.maxAttempts=e,this.mode=jn.STANDARD,this.capacity=500,this.retryBackoffStrategy=(()=>{let e=Qn;return{computeNextBackoffDelay:t=>Math.floor(Math.min(Jn,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return eo({retryDelay:Qn,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:Qn);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(r);return this.capacity-=i,eo({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class ro{constructor(e,t){this.maxAttemptsProvider=e,this.mode=jn.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new Kn,this.standardRetryStrategy=new to(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const no={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let oo;const io=new Uint8Array(16);function so(){if(!oo&&(oo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!oo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oo(io)}const ao=[];for(let e=0;e<256;++e)ao.push((e+256).toString(16).slice(1));function co(e,t=0){return ao[e[t+0]]+ao[e[t+1]]+ao[e[t+2]]+ao[e[t+3]]+"-"+ao[e[t+4]]+ao[e[t+5]]+"-"+ao[e[t+6]]+ao[e[t+7]]+"-"+ao[e[t+8]]+ao[e[t+9]]+"-"+ao[e[t+10]]+ao[e[t+11]]+ao[e[t+12]]+ao[e[t+13]]+ao[e[t+14]]+ao[e[t+15]]}const uo=function(e,t,r){if(no.randomUUID&&!t&&!e)return no.randomUUID();const n=(e=e||{}).random||(e.rng||so)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return co(n)},lo=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);const go=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},ho=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,po=()=>{let e=[],t=[],r=!1;const n=new Set,o=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r.identifyOnResolve?.(a.identifyOnResolve()),r),i=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t},s=(r=!1)=>{const n=[],o=[],s={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of go(t.name,t.aliases))s[e]=t;n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of go(t.name,t.aliases))s[e]=t;o.push(t)})),o.forEach((e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${ho(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));const a=(c=n,c.sort(((e,t)=>fo[t.step]-fo[e.step]||mo[t.priority||"normal"]-mo[e.priority||"normal"]))).map(i).reduce(((e,t)=>(e.push(...t),e)),[]);var c;return a},a={add:(t,r={})=>{const{name:o,override:i,aliases:s}=r,a={step:"initialize",priority:"normal",middleware:t,...r},c=go(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${ho(o,s)}'`);for(const t of c){const r=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(-1===r)continue;const n=e[r];if(n.step!==a.step||a.priority!==n.priority)throw new Error(`"${ho(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${ho(o,s)}" middleware with ${a.priority} priority in ${a.step} step.`);e.splice(r,1)}}for(const e of c)n.add(e)}e.push(a)},addRelativeTo:(e,r)=>{const{name:o,override:i,aliases:s}=r,a={middleware:e,...r},c=go(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${ho(o,s)}'`);for(const e of c){const r=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(-1===r)continue;const n=t[r];if(n.toMiddleware!==a.toMiddleware||n.relation!==a.relation)throw new Error(`"${ho(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${ho(o,s)}" middleware ${a.relation} "${a.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of c)n.add(e)}t.push(a)},clone:()=>o(po()),use:e=>{e.applyToStack(a)},remove:r=>"string"==typeof r?(r=>{let o=!1;const i=e=>{const t=go(e.name,e.aliases);if(t.includes(r)){o=!0;for(const e of t)n.delete(e);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r):(r=>{let o=!1;const i=e=>{if(e.middleware===r){o=!0;for(const t of go(e.name,e.aliases))n.delete(t);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r),removeByTag:r=>{let o=!1;const i=e=>{const{tags:t,name:i,aliases:s}=e;if(t&&t.includes(r)){const e=go(i,s);for(const t of e)n.delete(t);return o=!0,!1}return!0};return e=e.filter(i),t=t.filter(i),o},concat:e=>{const t=o(po());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:o,identify:()=>s(!0).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return ho(e.name,e.aliases)+" - "+t})),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of s().map((e=>e.middleware)).reverse())e=r(e,t);return r&&console.log(a.identify()),e}};return a},fo={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},mo={high:3,normal:2,low:1};class ko{constructor(e){this.config=e,this.middlewareStack=po()}send(e,t,r){const n="function"!=typeof t?t:void 0,o="function"==typeof t?t:r;let i;if(void 0===n&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?i=t.get(e.constructor):(i=e.resolveMiddleware(this.middlewareStack,this.config,n),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!o)return i(e).then((e=>e.output));i(e).then((e=>o(null,e.output)),(e=>o(e))).catch((()=>{}))}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}class bo{constructor(){this.middlewareStack=po()}static classBuilder(){return new vo}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,smithyContext:c,additionalContext:u,CommandCtor:d}){for(const o of n.bind(this)(d,e,t,r))this.middlewareStack.use(o);const l=e.concat(this.middlewareStack),{logger:g}=t,h={logger:g,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,[Yt]:{commandInstance:this,...c},...u},{requestHandler:p}=t;return l.resolve((e=>p.handle(e.request,r||{})),h)}}class vo{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=e=>e,this._outputFilterSensitiveLog=e=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let t;return t=class extends bo{static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=t??{},e._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}const wo="***SensitiveInformation***",yo=(Math.ceil(2**127*(2-2**-23)),e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}}),_o=e=>So(e,32),So=(e,t)=>{const r=yo(e);if(void 0!==r&&Ao(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},Ao=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},xo=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return Io.warn(Eo(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},Eo=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),Io={warn:console.warn};class Ro extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,Ro.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Po=(e,t={})=>{Object.entries(t).filter((([,e])=>void 0!==e)).forEach((([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)}));const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},Mo=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Co=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},To=e=>{const t=[];for(const r in Qt){const n=Qt[r];void 0!==e[n]&&t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(e){this._checksumAlgorithms.push(e)},checksumAlgorithms(){return this._checksumAlgorithms}}},Oo=e=>{const t={};return e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()})),t},Lo=e=>{let t=e.retryStrategy;return{setRetryStrategy(e){t=e},retryStrategy:()=>t}},No=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},$o=e=>({...To(e),...Lo(e)}),Bo=function(){const e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(t,e.prototype),t};Bo.prototype=Object.create(String.prototype,{constructor:{value:Bo,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(Bo,String);class Uo{trace(){}debug(){}info(){}warn(){}error(){}}function Do(e,t,r){let n,o,i;if(void 0===t&&void 0===r)n={},i=e;else{if(n=e,"function"==typeof t)return o=t,i=r,jo(n,o,i);i=t}for(const e of Object.keys(i))Array.isArray(i[e])?Ho(n,null,i,e):n[e]=i[e];return n}const Fo=(e,t)=>{const r={};for(const n in t)Ho(r,e,t,n);return r},jo=(e,t,r)=>Do(e,Object.entries(r).reduce(((e,[r,n])=>(Array.isArray(n)?e[r]=n:e[r]="function"==typeof n?[t,n()]:[t,n],e)),{})),Ho=(e,t,r,n)=>{if(null!==t){let o=r[n];"function"==typeof o&&(o=[,o]);const[i=qo,s=Vo,a=n]=o;return void(("function"==typeof i&&i(t[a])||"function"!=typeof i&&i)&&(e[n]=s(t[a])))}let[o,i]=r[n];if("function"==typeof i){let t;const r=void 0===o&&null!=(t=i()),s="function"==typeof o&&!!o(void 0)||"function"!=typeof o&&!!o;r?e[n]=t:s&&(e[n]=i())}else{const t=void 0===o&&null!=i,r="function"==typeof o&&!!o(i)||"function"!=typeof o&&!!o;(t||r)&&(e[n]=i)}},qo=e=>null!=e,Vo=e=>e,zo=e=>e?.body instanceof ReadableStream,Go=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,Wo=e=>{const t={error:e,errorType:Zo(e)},r=Jo(e.$response);return r&&(t.retryAfterHint=r),t},Zo=e=>Wn(e)?"THROTTLING":Zn(e)?"TRANSIENT":(e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!Zn(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",Ko={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Qo=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let o=await e.retryStrategy();const i=await e.maxAttempts();if(!Go(o))return o?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,n);{let e=await o.acquireInitialRetryToken(r.partition_id),s=new Error,a=0,c=0;const{request:u}=n,d=tr.isInstance(u);for(d&&(u.headers[Yn]=uo());;)try{d&&(u.headers[Xn]=`attempt=${a+1}; max=${i}`);const{response:r,output:s}=await t(n);return o.recordSuccess(e),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,{response:r,output:s}}catch(t){const n=Wo(t);if(s=lo(t),d&&zo(u))throw(r.logger instanceof Uo?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),s;try{e=await o.refreshRetryTokenForRetry(e,n)}catch(e){throw s.$metadata||(s.$metadata={}),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,s}a=e.getRetryCount();const i=e.getRetryDelay();c+=i,await new Promise((e=>setTimeout(e,i)))}}})(e),Ko)}}),Jo=e=>{if(!rr.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)},Yo=e=>encodeURIComponent(e).replace(/[!'()*]/g,Xo),Xo=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,ei=e=>"string"==typeof e?un(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),ti="X-Amz-Date",ri="X-Amz-Signature",ni="X-Amz-Security-Token",oi="authorization",ii=ti.toLowerCase(),si=[oi,ii,"date"],ai=ri.toLowerCase(),ci="x-amz-content-sha256",ui=ni.toLowerCase(),di={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},li=/^proxy-/,gi=/^sec-/,hi="AWS4-HMAC-SHA256",pi="AWS4-HMAC-SHA256-PAYLOAD",fi="aws4_request",mi={},ki=[],bi=(e,t,r)=>`${e}/${t}/${r}/${fi}`,vi=(e,t,r)=>{const n=new e(t);return n.update(ei(r)),n.digest()},wi=({headers:e},t,r)=>{const n={};for(const o of Object.keys(e).sort()){if(null==e[o])continue;const i=o.toLowerCase();(i in di||t?.has(i)||li.test(i)||gi.test(i))&&(!r||r&&!r.has(i))||(n[i]=e[o].trim().replace(/\s+/g," "))}return n},yi=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===ci)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(n=t,"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(n))){const e=new r;return e.update(ei(t)),mn(await e.digest())}var n;return"UNSIGNED-PAYLOAD"};class _i{format(e){const t=[];for(const r of Object.keys(e)){const n=un(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=un(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(xi.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!Ai.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const d=new Uint8Array(17);return d[0]=9,d.set(fn(e.value.replace(/\-/g,"")),1),d}}}var Si;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(Si||(Si={}));const Ai=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class xi{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&Ei(t),new xi(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&Ei(e),parseInt(mn(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ei(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}const Ii=e=>{e=tr.clone(e);for(const t of Object.keys(e.headers))si.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},Ri=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class Pi{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:o,uriEscapePath:i=!0}){this.headerFormatter=new _i,this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=Gr(r),this.credentialProvider=Gr(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:s,hoistableHeaders:a,signingRegion:c,signingService:u}=t,d=await this.credentialProvider();this.validateResolvedCredentials(d);const l=c??await this.regionProvider(),{longDate:g,shortDate:h}=Mi(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=bi(h,l,u??this.service),f=((e,t={})=>{const{headers:r,query:n={}}=tr.clone(e);for(const e of Object.keys(r)){const o=e.toLowerCase();("x-amz-"===o.slice(0,6)&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))&&(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(Ii(e),{unhoistableHeaders:i,hoistableHeaders:a});d.sessionToken&&(f.query[ni]=d.sessionToken),f.query["X-Amz-Algorithm"]=hi,f.query["X-Amz-Credential"]=`${d.accessKeyId}/${p}`,f.query[ti]=g,f.query["X-Amz-Expires"]=n.toString(10);const m=wi(f,o,s);return f.query["X-Amz-SignedHeaders"]=Ci(m),f.query[ri]=await this.getSignature(g,p,this.getSigningKey(d,l,h,u),this.createCanonicalRequest(f,m,await yi(e,this.sha256))),f}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:o,signingService:i}){const s=o??await this.regionProvider(),{shortDate:a,longDate:c}=Mi(r),u=bi(a,s,i??this.service),d=await yi({headers:{},body:t},this.sha256),l=new this.sha256;l.update(e);const g=mn(await l.digest()),h=[pi,c,u,n,g,d].join("\n");return this.signString(h,{signingDate:r,signingRegion:s,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=r??await this.regionProvider(),{shortDate:s}=Mi(t),a=new this.sha256(await this.getSigningKey(o,i,s,n));return a.update(ei(e)),mn(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=o??await this.regionProvider(),c=Ii(e),{longDate:u,shortDate:d}=Mi(t),l=bi(d,a,i??this.service);c.headers[ii]=u,s.sessionToken&&(c.headers[ui]=s.sessionToken);const g=await yi(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(ci,c.headers)&&this.applyChecksum&&(c.headers[ci]=g);const h=wi(c,n,r),p=await this.getSignature(u,l,this.getSigningKey(s,a,d,i),this.createCanonicalRequest(c,h,g));return c.headers[oi]=`${hi} Credential=${s.accessKeyId}/${l}, SignedHeaders=${Ci(h)}, Signature=${p}`,c}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e)){if(n.toLowerCase()===ai)continue;const o=Yo(n);t.push(o);const i=e[n];"string"==typeof i?r[o]=`${o}=${Yo(i)}`:Array.isArray(i)&&(r[o]=i.slice(0).reduce(((e,t)=>e.concat([`${o}=${Yo(t)}`])),[]).sort().join("&"))}return t.sort().map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update(ei(r));const o=await n.digest();return`${hi}\n${e}\n${t}\n${mn(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return Yo(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const o=await this.createStringToSign(e,t,n),i=new this.sha256(await r);return i.update(ei(o)),mn(await i.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,o)=>{const i=`${r}:${n}:${o}:${mn(await vi(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(i in mi)return mi[i];for(ki.push(i);ki.length>50;)delete mi[ki.shift()];let s=`AWS4${t.secretAccessKey}`;for(const t of[r,n,o,fi])s=await vi(e,s,t);return mi[i]=s})(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const Mi=e=>{const t=(r=e,Ri(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},Ci=e=>Object.keys(e).sort().join(";"),Ti=e=>{let t;e.credentials&&(t=((e,t,r)=>{if(void 0===e)return;const n="function"!=typeof e?async()=>Promise.resolve(e):e;let o,i,s,a=!1;const c=async e=>{i||(i=n(e));try{o=await i,s=!0,a=!1}finally{i=void 0}return o};return void 0===t?async e=>(s&&!e?.forceRefresh||(o=await c(e)),o):async e=>(s&&!e?.forceRefresh||(o=await c(e)),a?o:r(o)?t(o)?(await c(e),o):o:(a=!0,o))})(e.credentials,_n,An)),t||(t=e.credentialDefaultProvider?on(e.credentialDefaultProvider(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:o}=e;let i;return i=e.signer?on(e.signer):e.regionInfoProvider?()=>on(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,i])=>{const{signingRegion:s,signingService:a}=n;e.signingRegion=e.signingRegion||s||i,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||Pi)(c)})):async n=>{const i=(n=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await on(e.region)(),properties:{}},n)).signingRegion,s=n.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||s||e.serviceId;const a={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||Pi)(a)},{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:i}},Oi=async(e,t,r)=>({operation:zr(t).operation,region:await Gr(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const Li=e=>{const t=[];return e.operation,t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"bedrock",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e)),t},Ni={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},$i="3.621.0";var Bi="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e=>(new TextEncoder).encode(e);function Ui(e){return e instanceof Uint8Array?e:"string"==typeof e?Bi(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Di(e){return"string"==typeof e?0===e.length:0===e.byteLength}var Fi={name:"SHA-256"},ji={name:"HMAC",hash:Fi},Hi=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);const qi={};function Vi(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:qi}var zi=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!Di(e)){var t=Ui(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return Vi().crypto.subtle.sign(ji,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):Di(this.toHash)?Promise.resolve(Hi):Promise.resolve().then((function(){return Vi().crypto.subtle.digest(Fi,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise((function(t,r){Vi().crypto.subtle.importKey("raw",Ui(e.secret),ji,!1,["sign"]).then(t,r)})),this.key.catch((function(){})))},e}();function Gi(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function Wi(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function Zi(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;"function"==typeof SuppressedError&&SuppressedError;var Ki=64,Qi=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ji=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Yi=Math.pow(2,53)-1,Xi=function(){function e(){this.state=Int32Array.from(Ji),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>Yi)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===Ki&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%Ki>=56){for(var n=this.bufferLength;n<Ki;n++)t.setUint8(n,0);this.hashBuffer(),this.bufferLength=0}for(n=this.bufferLength;n<56;n++)t.setUint8(n,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(32);for(n=0;n<8;n++)o[4*n]=this.state[n]>>>24&255,o[4*n+1]=this.state[n]>>>16&255,o[4*n+2]=this.state[n]>>>8&255,o[4*n+3]=this.state[n]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],c=t[6],u=t[7],d=0;d<Ki;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var l=this.temp[d-2],g=(l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10,h=((l=this.temp[d-15])>>>7|l<<25)^(l>>>18|l<<14)^l>>>3;this.temp[d]=(g+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var p=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&a^~s&c)|0)+(u+(Qi[d]+this.temp[d]|0)|0)|0,f=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&o^n&o)|0;u=c,c=a,a=s,s=i+p|0,i=o,o=n,n=r,r=p+f|0}t[0]+=r,t[1]+=n,t[2]+=o,t[3]+=i,t[4]+=s,t[5]+=a,t[6]+=c,t[7]+=u},e}(),es=function(){function e(e){this.secret=e,this.hash=new Xi,this.reset()}return e.prototype.update=function(e){if(!Di(e)&&!this.error)try{this.hash.update(Ui(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Gi(this,void 0,void 0,(function(){return Wi(this,(function(e){return[2,this.digestSync()]}))}))},e.prototype.reset=function(){if(this.hash=new Xi,this.secret){this.outer=new Xi;var e=function(e){var t=Ui(e);if(t.byteLength>Ki){var r=new Xi;r.update(t),t=r.digest()}var n=new Uint8Array(Ki);return n.set(t),n}(this.secret),t=new Uint8Array(Ki);t.set(e);for(var r=0;r<Ki;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(r=0;r<e.byteLength;r++)e[r]=0}},e}();var ts=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function rs(e){return e&&ts.every((function(t){return"function"==typeof e[t]}))}var ns=function(){function e(e){!function(e){return!(!function(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}(e)||"object"!=typeof e.crypto.subtle)&&rs(e.crypto.subtle)}(Vi())?this.hash=new es(e):this.hash=new zi(e)}return e.prototype.update=function(e,t){this.hash.update(Ui(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),os=r(369),is=r.n(os);const ss=({serviceId:e,clientVersion:t})=>async()=>{const r="undefined"!=typeof window&&window?.navigator?.userAgent?is().parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",t],["ua","2.0"],[`os/${r?.os?.name||"other"}`,r?.os?.version],["lang/js"],["md/browser",`${r?.browser?.name??"unknown"}_${r?.browser?.version??"unknown"}`]];return e&&n.push([`api/${e}`,t]),n};!function(){function e(){this.crc32=new cs}e.prototype.update=function(e){Di(e)||this.crc32.update(Ui(e))},e.prototype.digest=function(){return Gi(this,void 0,void 0,(function(){return Wi(this,(function(e){return[2,(t=this.crc32.digest(),new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))];var t}))}))},e.prototype.reset=function(){this.crc32=new cs}}();var as,cs=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=Zi(e),o=n.next();!o.done;o=n.next()){var i=o.value;this.checksum=this.checksum>>>8^us[255&(this.checksum^i)]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),us=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);class ds{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&ls(t),new ds(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&ls(e),parseInt(mn(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function ls(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class gs{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(ds.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!_s.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const d=new Uint8Array(17);return d[0]=9,d.set(fn(e.value.replace(/\-/g,"")),1),d}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[o]={type:hs,value:!0};break;case 1:t[o]={type:hs,value:!1};break;case 2:t[o]={type:ps,value:e.getInt8(r++)};break;case 3:t[o]={type:fs,value:e.getInt16(r,!1)},r+=2;break;case 4:t[o]={type:ms,value:e.getInt32(r,!1)},r+=4;break;case 5:t[o]={type:ks,value:new ds(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[o]={type:bs,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const i=e.getUint16(r,!1);r+=2,t[o]={type:vs,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,i))},r+=i;break;case 8:t[o]={type:ws,value:new Date(new ds(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[o]={type:ys,value:`${mn(s.subarray(0,4))}-${mn(s.subarray(4,6))}-${mn(s.subarray(6,8))}-${mn(s.subarray(8,10))}-${mn(s.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(as||(as={}));const hs="boolean",ps="byte",fs="short",ms="integer",ks="long",bs="binary",vs="string",ws="timestamp",ys="uuid",_s=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ss{constructor(e,t){this.headerMarshaller=new gs(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage:()=>e,isEndOfStream:()=>t}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages:()=>e,isEndOfStream:()=>t}}encode({headers:e,body:t}){const r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,o=new Uint8Array(n),i=new DataView(o.buffer,o.byteOffset,o.byteLength),s=new cs;return i.setUint32(0,n,!1),i.setUint32(4,r.byteLength,!1),i.setUint32(8,s.update(o.subarray(0,8)).digest(),!1),o.set(r,12),o.set(t,r.byteLength+12),i.setUint32(n-4,s.update(o.subarray(8,n-4)).digest(),!1),o}decode(e){const{headers:t,body:r}=function({byteLength:e,byteOffset:t,buffer:r}){if(e<16)throw new Error("Provided message too short to accommodate event stream message overhead");const n=new DataView(r,t,e),o=n.getUint32(0,!1);if(e!==o)throw new Error("Reported message length does not match received message length");const i=n.getUint32(4,!1),s=n.getUint32(8,!1),a=n.getUint32(e-4,!1),c=(new cs).update(new Uint8Array(r,t,8));if(s!==c.digest())throw new Error(`The prelude checksum specified in the message (${s}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(r,t+8,e-12)),a!==c.digest())throw new Error(`The message checksum (${c.digest()}) did not match the expected value of ${a}`);return{headers:new DataView(r,t+8+4,i),body:new Uint8Array(r,t+8+4+i,o-i-16)}}(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}class As{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}class xs{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}class Es{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}class Is{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}function Rs(e,t){return async function(r){const{value:n}=r.headers[":message-type"];if("error"===n){const e=new Error(r.headers[":error-message"].value||"UnknownError");throw e.name=r.headers[":error-code"].value,e}if("exception"===n){const n=r.headers[":exception-type"].value,o={[n]:r},i=await e(o);if(i.$unknown){const e=new Error(t(r.body));throw e.name=n,e}throw i[n]}if("event"===n){const t={[r.headers[":event-type"].value]:r},n=await e(t);if(n.$unknown)return;return n}throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}class Ps{constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new Ss(e,t),this.utfEncoder=e}deserialize(e,t){const r=function(e){let t=0,r=0,n=null,o=null;const i=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,n=new Uint8Array(e),new DataView(n.buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){const s=e[Symbol.asyncIterator]();for(;;){const{value:e,done:a}=await s.next();if(a){if(!t)return;if(t!==r)throw new Error("Truncated event message received.");return void(yield n)}const c=e.length;let u=0;for(;u<c;){if(!n){const t=c-u;o||(o=new Uint8Array(4));const n=Math.min(4-r,t);if(o.set(e.slice(u,u+n),r),r+=n,u+=n,r<4)break;i(new DataView(o.buffer).getUint32(0,!1)),o=null}const s=Math.min(t-r,c-u);n.set(e.slice(u,u+s),r),r+=s,u+=s,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}(e);return new Es({messageStream:new As({inputStream:r,decoder:this.eventStreamCodec}),deserializer:Rs(t,this.utfEncoder)})}serialize(e,t){return new xs({messageStream:new Is({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}class Ms{constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new Ps({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const r=Cs(e)?(n=e,{[Symbol.asyncIterator]:async function*(){const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}}}):e;var n;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){const r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})})(r):r}}const Cs=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,Ts=e=>new Ms(e);function Os(e=0){return new Promise(((t,r)=>{e&&setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)}),e)}))}const Ls={supported:void 0};class Ns{static create(e){return"function"==typeof e?.handle?e:new Ns(e)}constructor(e){"function"==typeof e?this.configProvider=e().then((e=>e||{})):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===Ls.supported&&(Ls.supported=Boolean("undefined"!=typeof Request&&"keepalive"in new Request("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);const r=this.config.requestTimeout,n=!0===this.config.keepAlive,o=this.config.credentials;if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let i=e.path;const s=function(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=Yo(r),Array.isArray(n))for(let e=0,o=n.length;e<o;e++)t.push(`${r}=${Yo(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${Yo(n)}`),t.push(e)}}return t.join("&")}(e.query||{});s&&(i+=`?${s}`),e.fragment&&(i+=`#${e.fragment}`);let a="";if(null!=e.username||null!=e.password){a=`${e.username??""}:${e.password??""}@`}const{port:c,method:u}=e,d=`${e.protocol}//${a}${e.hostname}${c?`:${c}`:""}${i}`,l="GET"===u||"HEAD"===u?void 0:e.body,g={body:l,headers:new Headers(e.headers),method:u,credentials:o};this.config?.cache&&(g.cache=this.config.cache),l&&(g.duplex="half"),"undefined"!=typeof AbortController&&(g.signal=t),Ls.supported&&(g.keepalive=n),"function"==typeof this.config.requestInit&&Object.assign(g,this.config.requestInit(e));let h=()=>{};const p=new Request(d,g),f=[fetch(p).then((e=>{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new rr({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then((t=>({response:new rr({headers:r,reason:e.statusText,statusCode:e.status,body:t})})))})),Os(r)];return t&&f.push(new Promise(((e,r)=>{const n=()=>{const e=new Error("Request aborted");e.name="AbortError",r(e)};if("function"==typeof t.addEventListener){const e=t;e.addEventListener("abort",n,{once:!0}),h=()=>e.removeEventListener("abort",n)}else t.onabort=n}))),Promise.race(f).finally(h)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((r=>(r[e]=t,r)))}httpHandlerConfigs(){return this.config??{}}}const $s=e=>"function"==typeof Blob&&e instanceof Blob?async function(e){const t=await function(e){return new Promise(((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",o=e.indexOf(","),i=o>-1?o+1:e.length;t(e.substring(i))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)}))}(e),r=cn(t);return new Uint8Array(r)}(e):async function(e){const t=[],r=e.getReader();let n=!1,o=0;for(;!n;){const{done:e,value:i}=await r.read();i&&(t.push(i),o+=i.length),n=e}const i=new Uint8Array(o);let s=0;for(const e of t)i.set(e,s),s+=e.length;return i}(e);const Bs="function"==typeof TextEncoder?new TextEncoder:null,Us=e=>{if("string"==typeof e){if(Bs)return Bs.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)},Ds=e=>new Date(Date.now()+e),Fs=e=>rr.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,js=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(Ds(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},Hs=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t};class qs{async sign(e,t,r){if(!tr.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:n,signer:o,signingRegion:i,signingName:s}=await(async e=>{const t=Hs("context",e.context),r=Hs("config",e.config),n=t.endpointV2?.properties?.authSchemes?.[0],o=Hs("signer",r.signer),i=await o(n),s=e?.signingRegion,a=e?.signingName;return{config:r,signer:i,signingRegion:s,signingName:a}})(r);return await o.sign(e,{signingDate:Ds(n.systemClockOffset),signingRegion:i,signingService:s})}errorHandler(e){return t=>{const r=t.ServerTime??Fs(t.$response);if(r){const n=Hs("config",e.config),o=n.systemClockOffset;n.systemClockOffset=js(r,n.systemClockOffset);n.systemClockOffset!==o&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const r=Fs(e);if(r){const e=Hs("config",t.config);e.systemClockOffset=js(r,e.systemClockOffset)}}}const Vs="required",zs="fn",Gs="argv",Ws="ref",Zs=!0,Ks="isSet",Qs="booleanEquals",Js="error",Ys="endpoint",Xs="tree",ea="PartitionResult",ta={[Vs]:!1,type:"String"},ra={[Vs]:!0,default:!1,type:"Boolean"},na={[Ws]:"Endpoint"},oa={[zs]:Qs,[Gs]:[{[Ws]:"UseFIPS"},!0]},ia={[zs]:Qs,[Gs]:[{[Ws]:"UseDualStack"},!0]},sa={},aa={[zs]:"getAttr",[Gs]:[{[Ws]:ea},"supportsFIPS"]},ca={[zs]:Qs,[Gs]:[!0,{[zs]:"getAttr",[Gs]:[{[Ws]:ea},"supportsDualStack"]}]},ua=[oa],da=[ia],la=[{[Ws]:"Region"}],ga={version:"1.0",parameters:{Region:ta,UseDualStack:ra,UseFIPS:ra,Endpoint:ta},rules:[{conditions:[{[zs]:Ks,[Gs]:[na]}],rules:[{conditions:ua,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Js},{rules:[{conditions:da,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Js},{endpoint:{url:na,properties:sa,headers:sa},type:Ys}],type:Xs}],type:Xs},{rules:[{conditions:[{[zs]:Ks,[Gs]:la}],rules:[{conditions:[{[zs]:"aws.partition",[Gs]:la,assign:ea}],rules:[{conditions:[oa,ia],rules:[{conditions:[{[zs]:Qs,[Gs]:[Zs,aa]},ca],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:sa,headers:sa},type:Ys}],type:Xs}],type:Xs},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Js}],type:Xs},{conditions:ua,rules:[{conditions:[{[zs]:Qs,[Gs]:[aa,Zs]}],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:sa,headers:sa},type:Ys}],type:Xs}],type:Xs},{error:"FIPS is enabled but this partition does not support FIPS",type:Js}],type:Xs},{conditions:da,rules:[{conditions:[ca],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:sa,headers:sa},type:Ys}],type:Xs}],type:Xs},{error:"DualStack is enabled but this partition does not support DualStack",type:Js}],type:Xs},{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",properties:sa,headers:sa},type:Ys}],type:Xs}],type:Xs}],type:Xs},{error:"Invalid Configuration: Missing Region",type:Js}],type:Xs}]},ha=(e,t={})=>((e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:o,rules:i}=e;t.logger?.debug?.(`${pr} Initial EndpointParams: ${fr(r)}`);const s=Object.entries(o).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(s.length>0)for(const[e,t]of s)r[e]=r[e]??t;const a=Object.entries(o).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==r[e])throw new mr(`Missing required parameter: '${e}'`);const c=Tr(i,{endpointParams:r,logger:n,referenceRecord:{}});return t.logger?.debug?.(`${pr} Resolved endpoint: ${fr(c)}`),c})(ga,{endpointParams:e,logger:t.logger});hr.aws=$r;Error;const pa=["in-region","cross-region","mobile","standard","legacy"],fa=()=>{const e="undefined"!=typeof window&&window?.navigator?.userAgent?is().parse(window.navigator.userAgent):void 0,t=e?.platform?.type;return"tablet"===t||"mobile"===t},ma=e=>{const t=(({defaultsMode:e}={})=>((e,t,r)=>{let n,o,i,s=!1;const a=async()=>{o||(o=e());try{n=await o,i=!0,s=!1}finally{o=void 0}return n};return void 0===t?async e=>(i&&!e?.forceRefresh||(n=await a()),n):async e=>(i&&!e?.forceRefresh||(n=await a()),s?n:r&&!r(n)?(s=!0,n):t(n)?(await a(),n):n)})((async()=>{const t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(fa()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${pa.join(", ")}, got ${t}`)}})))(e),r=()=>t().then(Co),n=(e=>({apiVersion:"2023-09-30",base64Decoder:e?.base64Decoder??cn,base64Encoder:e?.base64Encoder??dn,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ha,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Li,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new qs}],logger:e?.logger??new Uo,serviceId:e?.serviceId??"Bedrock Runtime",urlParser:e?.urlParser??Nn,utf8Decoder:e?.utf8Decoder??un,utf8Encoder:e?.utf8Encoder??ln}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Us,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ss({serviceId:n.serviceId,clientVersion:$i}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??Ts,maxAttempts:e?.maxAttempts??3,region:e?.region??(o="Region is missing",()=>Promise.reject(o)),requestHandler:Ns.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Hn),sha256:e?.sha256??ns,streamCollector:e?.streamCollector??$s,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(false)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(false))};var o},ka=e=>{let t=async()=>{if(void 0===e.region)throw new Error("Region is missing from runtimeConfig");const t=e.region;return"string"==typeof t?t:t()};return{setRegion(e){t=e},region:()=>t}},ba=e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,n=e.credentials;return{setHttpAuthScheme(e){const r=t.findIndex((t=>t.schemeId===e.schemeId));-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){n=e},credentials:()=>n}},va=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});class wa extends ko{constructor(...[e]){const t=(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"bedrock"}))(ma(e||{})),r=(e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return Zr(t);const e=await t();return Zr(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!Wr(e)||("function"!=typeof r?Promise.resolve(!!r):r())}}})(t),n=(e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>$n(await Gr(r)()):void 0,o=!!r,i={...e,endpoint:n,tls:t,isCustomEndpoint:o,useDualstackEndpoint:Gr(e.useDualstackEndpoint??!1),useFipsEndpoint:Gr(e.useFipsEndpoint??!1)};let s;return i.serviceConfiguredEndpoint=async()=>(e.serviceId&&!s&&(s=Ln(e.serviceId)),s),i})(r);var o;const i=(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}))((e=>{const{retryStrategy:t}=e,r=Gr(e.maxAttempts??3);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await Gr(e.retryMode)()===jn.ADAPTIVE?new ro(r):new to(r))}})((o=n,{...o,customUserAgent:"string"==typeof o.customUserAgent?[[o.customUserAgent]]:o.customUserAgent})));const s=((e,t)=>{const r={...ka(e),...$o(e),...Gt(e),...ba(e)};return t.forEach((e=>e.configure(r))),{...e,...(i=r,{region:i.region()}),...(o=r,{...Oo(o),...No(o)}),...(n=r,{httpHandler:n.httpHandler()}),...va(r)};var n,o,i})({...Ti(i)},e?.extensions||[]);super(s),this.config=s,this.middlewareStack.use(or(this.config)),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:o,commandName:i,logger:s,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,d=c??t.inputFilterSensitiveLog,l=u??t.outputFilterSensitiveLog,{$metadata:g,...h}=n.output;return s?.info?.({clientName:o,commandName:i,input:d(r.input),output:l(h),metadata:g}),n}catch(e){const{clientName:n,commandName:o,logger:i,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:a}=s,c=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:o,input:c(r.input),error:e,metadata:e.$metadata}),e}}),ir)}})),this.middlewareStack.use(cr(this.config)),this.middlewareStack.use((e=>({applyToStack:t=>{t.add(jr(e),qr)}}))(this.config)),this.middlewareStack.use(Qo(this.config)),this.middlewareStack.use(In(this.config)),this.middlewareStack.use(((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Kr(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),Qr)}}))(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use(nn(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return Oi}getIdentityProviderConfigProvider(){return async e=>new yn({"aws.auth#sigv4":e.credentials})}}class ya extends Ro{constructor(e){super(e),Object.setPrototypeOf(this,ya.prototype)}}class _a extends ya{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,_a.prototype)}}var Sa;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):t._(e.$unknown[0],e.$unknown[1])}(Sa||(Sa={}));class Aa extends ya{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,Aa.prototype)}}class xa extends ya{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,xa.prototype)}}class Ea extends ya{constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),this.name="ServiceQuotaExceededException",this.$fault="client",Object.setPrototypeOf(this,Ea.prototype)}}class Ia extends ya{constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,Ia.prototype)}}class Ra extends ya{constructor(e){super({name:"ValidationException",$fault:"client",...e}),this.name="ValidationException",this.$fault="client",Object.setPrototypeOf(this,Ra.prototype)}}var Pa;!function(e){e.visit=(e,t)=>void 0!==e.bytes?t.bytes(e.bytes):t._(e.$unknown[0],e.$unknown[1])}(Pa||(Pa={}));var Ma;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):t._(e.$unknown[0],e.$unknown[1])}(Ma||(Ma={}));var Ca,Ta;!function(e){e.visit=(e,t)=>void 0!==e.bytes?t.bytes(e.bytes):t._(e.$unknown[0],e.$unknown[1])}(Ca||(Ca={})),function(e){e.visit=(e,t)=>void 0!==e.json?t.json(e.json):void 0!==e.text?t.text(e.text):void 0!==e.image?t.image(e.image):void 0!==e.document?t.document(e.document):t._(e.$unknown[0],e.$unknown[1])}(Ta||(Ta={}));var Oa;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.image?t.image(e.image):void 0!==e.document?t.document(e.document):void 0!==e.toolUse?t.toolUse(e.toolUse):void 0!==e.toolResult?t.toolResult(e.toolResult):void 0!==e.guardContent?t.guardContent(e.guardContent):t._(e.$unknown[0],e.$unknown[1])}(Oa||(Oa={}));var La,Na,$a,Ba,Ua;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.guardContent?t.guardContent(e.guardContent):t._(e.$unknown[0],e.$unknown[1])}(La||(La={})),function(e){e.visit=(e,t)=>void 0!==e.auto?t.auto(e.auto):void 0!==e.any?t.any(e.any):void 0!==e.tool?t.tool(e.tool):t._(e.$unknown[0],e.$unknown[1])}(Na||(Na={})),function(e){e.visit=(e,t)=>void 0!==e.json?t.json(e.json):t._(e.$unknown[0],e.$unknown[1])}($a||($a={})),function(e){e.visit=(e,t)=>void 0!==e.toolSpec?t.toolSpec(e.toolSpec):t._(e.$unknown[0],e.$unknown[1])}(Ba||(Ba={})),function(e){e.visit=(e,t)=>void 0!==e.message?t.message(e.message):t._(e.$unknown[0],e.$unknown[1])}(Ua||(Ua={}));class Da extends ya{constructor(e){super({name:"ModelErrorException",$fault:"client",...e}),this.name="ModelErrorException",this.$fault="client",Object.setPrototypeOf(this,Da.prototype),this.originalStatusCode=e.originalStatusCode,this.resourceName=e.resourceName}}class Fa extends ya{constructor(e){super({name:"ModelNotReadyException",$fault:"client",...e}),this.name="ModelNotReadyException",this.$fault="client",Object.setPrototypeOf(this,Fa.prototype)}}class ja extends ya{constructor(e){super({name:"ModelTimeoutException",$fault:"client",...e}),this.name="ModelTimeoutException",this.$fault="client",Object.setPrototypeOf(this,ja.prototype)}}class Ha extends ya{constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),this.name="ServiceUnavailableException",this.$fault="server",Object.setPrototypeOf(this,Ha.prototype)}}var qa,Va,za;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.toolUse?t.toolUse(e.toolUse):t._(e.$unknown[0],e.$unknown[1])}(qa||(qa={})),function(e){e.visit=(e,t)=>void 0!==e.toolUse?t.toolUse(e.toolUse):t._(e.$unknown[0],e.$unknown[1])}(Va||(Va={}));class Ga extends ya{constructor(e){super({name:"ModelStreamErrorException",$fault:"client",...e}),this.name="ModelStreamErrorException",this.$fault="client",Object.setPrototypeOf(this,Ga.prototype),this.originalStatusCode=e.originalStatusCode,this.originalMessage=e.originalMessage}}!function(e){e.visit=(e,t)=>void 0!==e.messageStart?t.messageStart(e.messageStart):void 0!==e.contentBlockStart?t.contentBlockStart(e.contentBlockStart):void 0!==e.contentBlockDelta?t.contentBlockDelta(e.contentBlockDelta):void 0!==e.contentBlockStop?t.contentBlockStop(e.contentBlockStop):void 0!==e.messageStop?t.messageStop(e.messageStop):void 0!==e.metadata?t.metadata(e.metadata):void 0!==e.internalServerException?t.internalServerException(e.internalServerException):void 0!==e.modelStreamErrorException?t.modelStreamErrorException(e.modelStreamErrorException):void 0!==e.validationException?t.validationException(e.validationException):void 0!==e.throttlingException?t.throttlingException(e.throttlingException):void 0!==e.serviceUnavailableException?t.serviceUnavailableException(e.serviceUnavailableException):t._(e.$unknown[0],e.$unknown[1])}(za||(za={}));var Wa;!function(e){e.visit=(e,t)=>void 0!==e.chunk?t.chunk(e.chunk):void 0!==e.internalServerException?t.internalServerException(e.internalServerException):void 0!==e.modelStreamErrorException?t.modelStreamErrorException(e.modelStreamErrorException):void 0!==e.validationException?t.validationException(e.validationException):void 0!==e.throttlingException?t.throttlingException(e.throttlingException):void 0!==e.modelTimeoutException?t.modelTimeoutException(e.modelTimeoutException):void 0!==e.serviceUnavailableException?t.serviceUnavailableException(e.serviceUnavailableException):t._(e.$unknown[0],e.$unknown[1])}(Wa||(Wa={}));const Za=e=>({...e,...e.body&&{body:wo}}),Ka=e=>({...e,...e.body&&{body:wo}}),Qa=e=>({...e,...e.body&&{body:wo}}),Ja=e=>({...e,...e.body&&{body:"STREAMING_CONTENT"}}),Ya=(e,t)=>((e,t)=>kn(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}})),Xa=async(e,t)=>{const r=await Ya(e,t);return r.message=r.message??r.Message,r},ec=async(e,t)=>{const r=vn(e,t),n=Do({},Rc,{[Cc]:e[Mc]||"application/octet-stream",[Pc]:e[Pc],[Dc]:e[Lc],[Bc]:e[Tc],[Uc]:e[Oc]});let o;return r.bp("/model/{modelId}/invoke"),r.p("modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(o=e.body),r.m("POST").h(n).b(o),r.build()},tc=async(e,t)=>{const r=vn(e,t),n=Do({},Rc,{[Cc]:e[Mc]||"application/octet-stream",[Nc]:e[Pc],[Dc]:e[Lc],[Bc]:e[Tc],[Uc]:e[Oc]});let o;return r.bp("/model/{modelId}/invoke-with-response-stream"),r.p("modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(o=e.body),r.m("POST").h(n).b(o),r.build()},rc=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return oc(e,t);const r=Do({$metadata:Ic(e),[Mc]:[,e.headers[Cc]]}),n=await kn(e.body,t);return r.body=n,r},nc=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return oc(e,t);const r=Do({$metadata:Ic(e),[Mc]:[,e.headers[$c]]}),n=e.body;return r.body=bc(n,t),r},oc=async(e,t)=>{const r={...e,body:await Xa(e.body,t)},n=((e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(o=e.headers,i="x-amzn-errortype",Object.keys(o).find((e=>e.toLowerCase()===i.toLowerCase())));var o,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0})(e,r.body);switch(n){case"AccessDeniedException":case"com.amazonaws.bedrockruntime#AccessDeniedException":throw await ac(r,t);case"InternalServerException":case"com.amazonaws.bedrockruntime#InternalServerException":throw await cc(r,t);case"ResourceNotFoundException":case"com.amazonaws.bedrockruntime#ResourceNotFoundException":throw await hc(r,t);case"ServiceQuotaExceededException":case"com.amazonaws.bedrockruntime#ServiceQuotaExceededException":throw await pc(r,t);case"ThrottlingException":case"com.amazonaws.bedrockruntime#ThrottlingException":throw await mc(r,t);case"ValidationException":case"com.amazonaws.bedrockruntime#ValidationException":throw await kc(r,t);case"ModelErrorException":case"com.amazonaws.bedrockruntime#ModelErrorException":throw await uc(r,t);case"ModelNotReadyException":case"com.amazonaws.bedrockruntime#ModelNotReadyException":throw await dc(r,t);case"ModelTimeoutException":case"com.amazonaws.bedrockruntime#ModelTimeoutException":throw await gc(r,t);case"ServiceUnavailableException":case"com.amazonaws.bedrockruntime#ServiceUnavailableException":throw await fc(r,t);case"ModelStreamErrorException":case"com.amazonaws.bedrockruntime#ModelStreamErrorException":throw await lc(r,t);default:const o=r.body;return ic({output:e,parsedBody:o,errorCode:n})}},ic=(sc=ya,({output:e,parsedBody:t,errorCode:r})=>{(({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const o=Mo(e),i=o.httpStatusCode?o.httpStatusCode+"":void 0,s=new r({name:t?.code||t?.Code||n||i||"UnknownError",$fault:"client",$metadata:o});throw Po(s,t)})({output:e,parsedBody:t,exceptionCtor:sc,errorCode:r})});var sc;const ac=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo});Object.assign(r,o);const i=new _a({$metadata:Ic(e),...r});return Po(i,e.body)},cc=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo});Object.assign(r,o);const i=new Aa({$metadata:Ic(e),...r});return Po(i,e.body)},uc=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo,originalStatusCode:_o,resourceName:xo});Object.assign(r,o);const i=new Da({$metadata:Ic(e),...r});return Po(i,e.body)},dc=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo});Object.assign(r,o);const i=new Fa({$metadata:Ic(e),...r});return Po(i,e.body)},lc=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo,originalMessage:xo,originalStatusCode:_o});Object.assign(r,o);const i=new Ga({$metadata:Ic(e),...r});return Po(i,e.body)},gc=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo});Object.assign(r,o);const i=new ja({$metadata:Ic(e),...r});return Po(i,e.body)},hc=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo});Object.assign(r,o);const i=new xa({$metadata:Ic(e),...r});return Po(i,e.body)},pc=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo});Object.assign(r,o);const i=new Ea({$metadata:Ic(e),...r});return Po(i,e.body)},fc=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo});Object.assign(r,o);const i=new Ha({$metadata:Ic(e),...r});return Po(i,e.body)},mc=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo});Object.assign(r,o);const i=new Ia({$metadata:Ic(e),...r});return Po(i,e.body)},kc=async(e,t)=>{const r=Do({}),n=e.body,o=Fo(n,{message:xo});Object.assign(r,o);const i=new Ra({$metadata:Ic(e),...r});return Po(i,e.body)},bc=(e,t)=>t.eventStreamMarshaller.deserialize(e,(async r=>null!=r.chunk?{chunk:await _c(r.chunk,t)}:null!=r.internalServerException?{internalServerException:await vc(r.internalServerException,t)}:null!=r.modelStreamErrorException?{modelStreamErrorException:await wc(r.modelStreamErrorException,t)}:null!=r.validationException?{validationException:await xc(r.validationException,t)}:null!=r.throttlingException?{throttlingException:await Ac(r.throttlingException,t)}:null!=r.modelTimeoutException?{modelTimeoutException:await yc(r.modelTimeoutException,t)}:null!=r.serviceUnavailableException?{serviceUnavailableException:await Sc(r.serviceUnavailableException,t)}:{$unknown:e})),vc=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return cc(r,t)},wc=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return lc(r,t)},yc=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return gc(r,t)},_c=async(e,t)=>{const r={},n=await Ya(e.body,t);return Object.assign(r,Ec(n,t)),r},Sc=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return fc(r,t)},Ac=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return mc(r,t)},xc=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return kc(r,t)},Ec=(e,t)=>Fo(e,{bytes:t.base64Decoder}),Ic=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Rc=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),Pc="accept",Mc="contentType",Cc="content-type",Tc="guardrailIdentifier",Oc="guardrailVersion",Lc="trace",Nc="x-amzn-bedrock-accept",$c="x-amzn-bedrock-content-type",Bc="x-amzn-bedrock-guardrailidentifier",Uc="x-amzn-bedrock-guardrailversion",Dc="x-amzn-bedrock-trace";class Fc extends(bo.classBuilder().ep({...Ni}).m((function(e,t,r,n){return[Xr(r,this.serialize,this.deserialize),Fn(r,e.getEndpointParameterInstructions())]})).s("AmazonBedrockFrontendService","InvokeModelWithResponseStream",{eventStream:{output:!0}}).n("BedrockRuntimeClient","InvokeModelWithResponseStreamCommand").f(Qa,Ja).ser(tc).de(nc).build()){}class jc extends(bo.classBuilder().ep({...Ni}).m((function(e,t,r,n){return[Xr(r,this.serialize,this.deserialize),Fn(r,e.getEndpointParameterInstructions())]})).s("AmazonBedrockFrontendService","InvokeModel",{}).n("BedrockRuntimeClient","InvokeModelCommand").f(Za,Ka).ser(ec).de(rc).build()){}const Hc=Vc;!function(e){const t=Vc,r=e();for(;;)try{if(537713===parseInt(t(304))/1+parseInt(t(329))/2+-parseInt(t(339))/3+parseInt(t(296))/4+parseInt(t(318))/5+parseInt(t(342))/6*(parseInt(t(354))/7)+-parseInt(t(325))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(zc);class qc extends jt{static get[Hc(332)](){return Hc(322)}constructor(e){const t=Hc;super(e),e[t(321)][t(344)](t(290))||e[t(321)][t(349)](t(290),{model:t(281),max_tokens_to_sample:2e3,temperature:1,top_p:1,top_k:250,anthropic_version:t(310),stream:!0}),this[t(306)]=e[t(321)][t(344)](t(289)),this[t(283)]=e[t(321)][t(344)](t(330)),this[t(355)]=e[t(321)][t(344)](t(285)),this[t(317)]=e[t(321)][t(344)](t(290))}async[Hc(315)]({query:e,context:t,onData:r,actionId:n}){const o=Hc,{model:i,stream:s,...a}=await this[o(297)](this[o(317)],n),c={prompt:await this[o(282)](e,t,i,n),...a};this[o(306)]?await this[o(305)](c,i,s,r,n):await this[o(351)](c,i,s,r)}async[Hc(282)](e,t,r,n){const o=Hc;let i,s;return t?(i=o(316),s=o(292)+e+o(343)+t):(i=o(353),s=e),o(300)==this[o(347)](r)?o(346)+i+o(286)+s+o(327):o(307)+i+"\n"+s+o(352)}[Hc(347)](e){const t=Hc;if(/^anthropic\.claude/[t(293)](e))return t(287);if(/^ai21\.j2/[t(293)](e))return t(299);if(/^cohere\.command/[t(293)](e))return t(357);if(/^meta\.llama/[t(293)](e))return t(300);throw new Q(J(this[t(291)][t(341)],t(301),e))}async[Hc(305)](e,t,r,n,o){const i=Hc,s={method:i(324),headers:await this[i(294)](this[i(355)],o),body:JSON[i(279)]({...e,model:t,stream:r}),signal:this[i(314)][i(331)]},a=await fetch(this[i(306)],s);r?await this[i(319)](a,t,n):await this[i(298)](a,t,n)}async[Hc(351)](e,t,r,n){const o=Hc,i=new wa(this[o(283)]),s={body:JSON[o(279)](e),contentType:o(309),accept:o(309),modelId:t};let a;if(r){const e=new Fc(s);a=await i[o(348)](e,{abortSignal:this[o(314)][o(331)]}),await this[o(323)](a,t,n)}else{const e=new jc(s);a=await i[o(348)](e,{abortSignal:this[o(314)][o(331)]}),await this[o(298)](a,t,n)}}async[Hc(323)](e,t,r){const n=Hc,o=e[n(284)],i=new TextDecoder(n(280));let s="";for await(const e of o)if(e[n(334)]){const o=i[n(320)](e[n(334)][n(338)]),a=JSON[n(288)](o);s+=this[n(356)](a,t),r(s)}return Promise[n(359)]()}async[Hc(319)](e,t,r){const n=Hc,o=e[n(284)],i=new TextDecoder(n(280)),s=o[n(311)]();let a="",c="",u=!1;for(;!u;){const{done:e,value:o}=await s[n(312)]();if(u=e,u)break;const d=(a+i[n(320)](o))[n(302)]("\n")[n(358)]((e=>{const t=n;try{return a="",JSON[t(288)](e)}catch(t){return a=e,null}}))[n(308)]((e=>null!==e));d[n(350)]&&(c+=d[n(358)]((e=>this[n(356)](e,t)))[n(328)](""),r(c))}return Promise[n(359)]()}async[Hc(298)](e,t,r){const n=Hc;let o;return o=e instanceof Response?await e[n(335)]():JSON[n(288)](Buffer[n(295)](e[n(284)])[n(337)](n(336))),r(this[n(356)](o,t)),Promise[n(359)]()}[Hc(356)](e,t){const r=Hc;switch(this[r(347)](t)){case r(287):return e[r(333)];case r(299):return e[r(326)][0][r(345)][r(340)];case r(357):return e[r(313)][0][r(340)];case r(300):return e[r(303)]}}}function Vc(e,t){const r=zc();return(Vc=function(e,t){return r[e-=279]})(e,t)}function zc(){const e=["resolve","stringify","utf-8","anthropic.claude-v2","preparePrompt","_bedrockClientConfig","body","ai.aws.requestHeaders","\n<</SYS>>\n[INST]\n","anthropic.claude","parse","ai.aws.apiUrl","ai.aws.requestParameters","editor","Instruction:\n","test","_prepareRequestHeaders","from","2338892KOSqXF","_prepareRequestParameters","_readStaticResponse","ai21.j2","meta.llama","AI_ERROR_UNSUPPORTED_MODEL","split","generation","609121YzJLFH","_processProxyRequest","_apiUrl","Human:\n","filter","application/json","bedrock-2023-05-31","getReader","read","generations","abortController","sendRequest","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","_requestParameters","4844295TtJgXj","_readStreamableResponse","decode","config","AWSTextAdapter","_readAsyncIterableResponse","POST","17614632vYucJG","completions","\n[/INST]","join","911476imUqnk","ai.aws.bedrockClientConfig","signal","pluginName","completion","chunk","json","utf8","toString","bytes","2408706ZtjDBg","text","locale","18FKELup","\nYou must keep the text formatting.\n\nContent:\n","get","data","<<SYS>>\n","getModelFamily","send","define","length","_processAWSRequest","\n\nAssistant:","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","2156007lpJnsl","_requestHeaders","_getGeneratedText","cohere.command","map"];return(zc=function(){return e})()}function Gc(e,t){var r=Wc();return(Gc=function(e,t){return r[e-=428]})(e,t)}function Wc(){var e=["5362336DkZIXj","20EUEWKx","9860600oMcVbG","1124376denkUZ","286430Jlpxji","324eBdvsE","62312PGFHZg","7256225QZzhUS","2359359VIwJip","11ZyjswN"];return(Wc=function(){return e})()}!function(e){for(var t=Gc,r=e();;)try{if(903777===-parseInt(t(437))/1*(parseInt(t(432))/2)+parseInt(t(433))/3*(-parseInt(t(434))/4)+parseInt(t(435))/5+parseInt(t(431))/6+parseInt(t(428))/7+parseInt(t(430))/8+-parseInt(t(436))/9*(-parseInt(t(429))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Wc)})(),(window.CKEditor5=window.CKEditor5||{}).ai=n})();
|
|
5
|
+
*/(()=>{var e={369:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(r),s=Math.max(o,i),a=0,c=e.map([t,r],(function(t){var r=s-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(a=s-Math.min(o,i)),s-=1;s>=a;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var o=e[r];if(t(o,r))return o}},e.assign=function(e){for(var t,r,n=e,o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var a=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=i.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},i=r(18);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],(r=null)&&s(t.prototype,r),n&&s(t,n),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),o=c(r(93)),i=c(r(94)),s=c(r(95)),a=c(r(17));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,o={},i=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(o[t]=s,i+=1):"object"==typeof s&&(r[t]=s,n+=1)})),n>0){var s=Object.keys(r),c=a.default.find(s,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var d=a.default.find(s,(function(e){return t.isPlatform(e)}));if(d){var l=this.satisfies(r[d]);if(void 0!==l)return l}}if(i>0){var g=Object.keys(o),h=a.default.find(g,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(o[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),o=a.default.getBrowserTypeByAlias(n);return t&&o&&(n=o.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(o,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},r=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=o.default.getMacOSVersionName(t),n={name:i.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=o.default.getAndroidVersionName(t),n={name:i.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:i.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},r=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},r=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},r=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},r=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})},142:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck.ck-aria-description{display:none}",""]);const a=s},507:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content pre>code.ck-suggestion-marker-formatBlock{box-shadow:-7px 0 0 0 #ededed,-10px 0 0 0 var(--ck-color-suggestion-marker-format-border);display:block}.ck-content pre>code.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 #ededed,-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}",""]);const a=s},967:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},258:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image img{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image,.ck-content .ck-suggestion-marker-insertion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},906:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.media .ck-media__wrapper{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-comment-marker.ck-widget.ck-merge-field,.ck-content .ck-suggestion-marker.ck-widget.ck-merge-field{border-width:2px;border-left:none;border-right:none;padding-bottom:0;padding-top:0}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom-color:var(--ck-color-suggestion-marker-deletion-border);border-top-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field :not(.ck-merge-field__affix),.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-merge-field_with-value,.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-merge-field_with-warning{text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-marker-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field{background-color:var(--ck-color-suggestion-marker-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-marker-insertion-background-active)}.ck-content .ck-comment-marker.ck-widget.ck-merge-field{background:var(--ck-color-comment-marker)}.ck-content .ck-comment-marker.ck-widget.ck-merge-field.ck-comment-marker--active{background:var(--ck-color-comment-marker-active)}.ck-content span.ck-comment-marker:has(+.ck-comment-marker.ck-widget.ck-merge-field),.ck-content span.ck-suggestion-marker:has(+.ck-suggestion-marker.ck-widget.ck-merge-field){margin-right:-1px;padding-right:1px}",""]);const a=s},751:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},901:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-color-suggestion-widget-th-insertion-background:rgba(102,229,119,.12);--ck-color-suggestion-widget-th-insertion-background-active:rgba(37,218,61,.14);--ck-color-suggestion-widget-th-deletion-background:rgba(229,102,134,.14);--ck-color-suggestion-widget-th-deletion-background-active:rgba(196,33,74,.16)}.ck-content figure.table .ck-suggestion-marker-formatBlock{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content figure.table .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.table{border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table{border-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .table th.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-th-insertion-background)}.ck-content .table th.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-th-deletion-background);text-decoration:none}.ck-content .table th.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .table td.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table td.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);text-decoration:none}.ck-content .table td.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-formatBlock,.ck-content .table td.ck-suggestion-marker-formatInline,.ck-content .table th.ck-suggestion-marker-formatBlock,.ck-content .table th.ck-suggestion-marker-formatInline{background-color:var(--ck-color-suggestion-widget-format-background);box-shadow:none}.ck-content .table td.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table td.ck-suggestion-marker-formatInline.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatInline.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-format-background-active);box-shadow:none}",""]);const a=s},961:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-color-comment-box-border:#f2de02;--ck-color-suggestion-box-deletion-border:#d85a79;--ck-color-suggestion-box-insertion-border:#5ad86b;--ck-color-suggestion-box-format-border:#5ac1d8}.ck .ck-suggestion{border-top-left-radius:var(--ck-border-radius)}.ck .ck-suggestion:focus{background:var(--ck-color-button-default-hover-background);outline:none}.ck .ck-annotation{border-left:3px solid transparent}.ck .ck-suggestion--disabled-comments .ck-annotation{min-height:80px}.ck .ck-comment,.ck .ck-comment__input-container,.ck .ck-thread__comment-count,.ck .ck-thread__header{border-left:3px solid var(--ck-color-comment-box-border)}.ck .ck-suggestion-insertion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-replace .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-format .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-format-border)}.ck .ck-suggestion-wrapper{border-radius:0;overflow:hidden}.ck .ck-suggestion-wrapper.ck-rounded-corners,.ck-rounded-corners .ck .ck-suggestion-wrapper{border-radius:var(--ck-border-radius)}.ck .ck-suggestion-wrapper:focus{box-shadow:0 0 0 4px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring)}.ck-balloon-panel:has(.ck-suggestion-wrapper:focus){border:var(--ck-focus-ring);box-shadow:var(--ck-drop-shadow),var(--ck-focus-outer-shadow);outline:none}.ck .ck-suggestion-type{font-weight:700}.ck .ck-suggestion-color{border-radius:14px;box-shadow:0 0 0 1px #454545;display:inline-block;height:14px;margin:0 5px;vertical-align:text-bottom;width:14px}.ck .ck-suggestion-insertion .ck-comment,.ck .ck-suggestion-insertion .ck-comment__input-container,.ck .ck-suggestion-insertion .ck-thread__comment-count,.ck .ck-suggestion-replace .ck-comment,.ck .ck-suggestion-replace .ck-comment__input-container,.ck .ck-suggestion-replace .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-comment,.ck .ck-suggestion-deletion .ck-comment__input-container,.ck .ck-suggestion-deletion .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-format .ck-comment,.ck .ck-suggestion-format .ck-comment__input-container,.ck .ck-suggestion-format .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-format-border)}",""]);const a=s},163:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,':root{--ck-color-suggestion-marker-insertion-border:rgba(30,174,49,.35);--ck-color-suggestion-marker-insertion-border-active:rgba(18,109,31,.5);--ck-color-suggestion-marker-insertion-background:rgba(102,229,119,.35);--ck-color-suggestion-marker-insertion-background-active:rgba(37,218,61,.5);--ck-color-suggestion-marker-deletion-border:rgba(174,30,66,.35);--ck-color-suggestion-marker-deletion-border-active:rgba(109,18,41,.5);--ck-color-suggestion-marker-deletion-background:rgba(229,102,134,.35);--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.5);--ck-color-suggestion-marker-deletion-stroke:rgba(87,15,33,.5);--ck-color-suggestion-marker-format-border:#99d7e6;--ck-color-suggestion-marker-format-border-active:#5cc0d6;--ck-color-suggestion-widget-insertion-background:rgba(102,229,119,.05);--ck-color-suggestion-widget-insertion-background-active:rgba(37,218,61,.07);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.05);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.07);--ck-color-suggestion-widget-format-background:rgba(10,160,194,.09);--ck-color-suggestion-widget-format-background-active:rgba(10,160,194,.16)}.ck-content .ck-suggestion-marker-insertion{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-insertion-border);text-decoration:none}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-merge:after{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);color:var(--ck-color-suggestion-marker-deletion-stroke);content:"¶";text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke)}.ck-content .ck-suggestion-marker-merge.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-split:after{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border);color:var(--ck-color-suggestion-marker-insertion-border);content:"¶"}.ck-content .ck-suggestion-marker-split.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-formatInline{border-bottom:3px solid var(--ck-color-suggestion-marker-format-border);border-top:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatInline.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatBlock{background:none;border:0;box-shadow:-7px 0 0 0 var(--ck-color-base-background),-10px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 var(--ck-color-base-background),-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content ol .ck-suggestion-marker-formatBlock,.ck-content ul .ck-suggestion-marker-formatBlock{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content ol .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content ul .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}',""]);const a=s},332:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-user-colors--0:#6d78e8;--ck-user-colors--0-alpha:rgba(109,120,232,.15);--ck-user-colors--1:#007a6c;--ck-user-colors--1-alpha:rgba(0,122,108,.15);--ck-user-colors--2:#ba4545;--ck-user-colors--2-alpha:rgba(186,69,69,.15);--ck-user-colors--3:#5635b1;--ck-user-colors--3-alpha:rgba(86,53,177,.15);--ck-user-colors--4:#548a2e;--ck-user-colors--4-alpha:rgba(84,138,46,.15);--ck-user-colors--5:#c3185d;--ck-user-colors--5-alpha:rgba(195,24,93,.15);--ck-user-colors--6:#ea4343;--ck-user-colors--6-alpha:rgba(234,67,67,.15);--ck-user-colors--7:#0bc3d0;--ck-user-colors--7-alpha:rgba(11,195,208,.15);--ck-user-dot-size:6px}.ck .ck-user__color--0{color:var(--ck-user-colors--0)}.ck .ck-user__bg-color--0{background-color:var(--ck-user-colors--0)}.ck .ck-user__selection--0{background-color:var(--ck-user-colors--0-alpha)}.ck .ck-user__selection--0.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--0)}.ck .ck-user__marker--0,.ck .ck-user__marker--0 .ck-user__marker-dot,.ck .ck-user__marker--0 .ck-user__marker-dot::selection,.ck .ck-user__marker--0 .ck-user__marker-tooltip,.ck .ck-user__marker--0 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--0::selection{background-color:var(--ck-user-colors--0)}.ck .ck-user__marker--0 .ck-user__marker-line{border:1px solid var(--ck-user-colors--0)}.ck .ck-user__color--1{color:var(--ck-user-colors--1)}.ck .ck-user__bg-color--1{background-color:var(--ck-user-colors--1)}.ck .ck-user__selection--1{background-color:var(--ck-user-colors--1-alpha)}.ck .ck-user__selection--1.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--1)}.ck .ck-user__marker--1,.ck .ck-user__marker--1 .ck-user__marker-dot,.ck .ck-user__marker--1 .ck-user__marker-dot::selection,.ck .ck-user__marker--1 .ck-user__marker-tooltip,.ck .ck-user__marker--1 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--1::selection{background-color:var(--ck-user-colors--1)}.ck .ck-user__marker--1 .ck-user__marker-line{border:1px solid var(--ck-user-colors--1)}.ck .ck-user__color--2{color:var(--ck-user-colors--2)}.ck .ck-user__bg-color--2{background-color:var(--ck-user-colors--2)}.ck .ck-user__selection--2{background-color:var(--ck-user-colors--2-alpha)}.ck .ck-user__selection--2.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--2)}.ck .ck-user__marker--2,.ck .ck-user__marker--2 .ck-user__marker-dot,.ck .ck-user__marker--2 .ck-user__marker-dot::selection,.ck .ck-user__marker--2 .ck-user__marker-tooltip,.ck .ck-user__marker--2 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--2::selection{background-color:var(--ck-user-colors--2)}.ck .ck-user__marker--2 .ck-user__marker-line{border:1px solid var(--ck-user-colors--2)}.ck .ck-user__color--3{color:var(--ck-user-colors--3)}.ck .ck-user__bg-color--3{background-color:var(--ck-user-colors--3)}.ck .ck-user__selection--3{background-color:var(--ck-user-colors--3-alpha)}.ck .ck-user__selection--3.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--3)}.ck .ck-user__marker--3,.ck .ck-user__marker--3 .ck-user__marker-dot,.ck .ck-user__marker--3 .ck-user__marker-dot::selection,.ck .ck-user__marker--3 .ck-user__marker-tooltip,.ck .ck-user__marker--3 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--3::selection{background-color:var(--ck-user-colors--3)}.ck .ck-user__marker--3 .ck-user__marker-line{border:1px solid var(--ck-user-colors--3)}.ck .ck-user__color--4{color:var(--ck-user-colors--4)}.ck .ck-user__bg-color--4{background-color:var(--ck-user-colors--4)}.ck .ck-user__selection--4{background-color:var(--ck-user-colors--4-alpha)}.ck .ck-user__selection--4.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--4)}.ck .ck-user__marker--4,.ck .ck-user__marker--4 .ck-user__marker-dot,.ck .ck-user__marker--4 .ck-user__marker-dot::selection,.ck .ck-user__marker--4 .ck-user__marker-tooltip,.ck .ck-user__marker--4 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--4::selection{background-color:var(--ck-user-colors--4)}.ck .ck-user__marker--4 .ck-user__marker-line{border:1px solid var(--ck-user-colors--4)}.ck .ck-user__color--5{color:var(--ck-user-colors--5)}.ck .ck-user__bg-color--5{background-color:var(--ck-user-colors--5)}.ck .ck-user__selection--5{background-color:var(--ck-user-colors--5-alpha)}.ck .ck-user__selection--5.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--5)}.ck .ck-user__marker--5,.ck .ck-user__marker--5 .ck-user__marker-dot,.ck .ck-user__marker--5 .ck-user__marker-dot::selection,.ck .ck-user__marker--5 .ck-user__marker-tooltip,.ck .ck-user__marker--5 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--5::selection{background-color:var(--ck-user-colors--5)}.ck .ck-user__marker--5 .ck-user__marker-line{border:1px solid var(--ck-user-colors--5)}.ck .ck-user__color--6{color:var(--ck-user-colors--6)}.ck .ck-user__bg-color--6{background-color:var(--ck-user-colors--6)}.ck .ck-user__selection--6{background-color:var(--ck-user-colors--6-alpha)}.ck .ck-user__selection--6.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--6)}.ck .ck-user__marker--6,.ck .ck-user__marker--6 .ck-user__marker-dot,.ck .ck-user__marker--6 .ck-user__marker-dot::selection,.ck .ck-user__marker--6 .ck-user__marker-tooltip,.ck .ck-user__marker--6 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--6::selection{background-color:var(--ck-user-colors--6)}.ck .ck-user__marker--6 .ck-user__marker-line{border:1px solid var(--ck-user-colors--6)}.ck .ck-user__color--7{color:var(--ck-user-colors--7)}.ck .ck-user__bg-color--7{background-color:var(--ck-user-colors--7)}.ck .ck-user__selection--7{background-color:var(--ck-user-colors--7-alpha)}.ck .ck-user__selection--7.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--7)}.ck .ck-user__marker--7,.ck .ck-user__marker--7 .ck-user__marker-dot,.ck .ck-user__marker--7 .ck-user__marker-dot::selection,.ck .ck-user__marker--7 .ck-user__marker-tooltip,.ck .ck-user__marker--7 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--7::selection{background-color:var(--ck-user-colors--7)}.ck .ck-user__marker--7 .ck-user__marker-line{border:1px solid var(--ck-user-colors--7)}",""]);const a=s},533:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(168),o=r.n(n),i=r(433),s=r.n(i),a=r(220),c=r.n(a),u=new URL(r(182),r.b),d=s()(o()),l=c()(u);d.push([e.id,`:root{--ck-user-avatar-size:40px;--ck-user-avatar-background:#3670ab;--ck-user-avatar-color:#fff;--ck-user-me-border-color:#fff}.ck.ck-user{align-items:center;background-color:var(--ck-user-avatar-background);border-radius:50%;box-sizing:border-box;display:flex;height:var(--ck-user-avatar-size);justify-content:center;line-height:100%;margin:2px;min-height:var(--ck-user-avatar-size);min-width:var(--ck-user-avatar-size);position:relative;width:var(--ck-user-avatar-size)}.ck.ck-user.ck-user_me{border:2px solid var(--ck-user-me-border-color);outline:2px solid var(--ck-user-avatar-background)}.ck.ck-user__name{color:var(--ck-user-avatar-color);cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-user__name.ck-user__name--hidden{display:none}.ck.ck-user__img{background-color:var(--ck-user-avatar-background);background-position:50%;background-repeat:no-repeat;background-size:cover;border:none;border-radius:50%;display:none;height:100%;width:100%}.ck.ck-user__img.ck-user__anonymous{background-image:url(${l});display:block}.ck.ck-user__img.ck-user__anonymous+.ck-user__name{display:none}.ck.ck-user__img.ck-user__avatar{background-color:#fff;display:block}.ck.ck-user__img.ck-user__img--hidden{display:none}.ck.ck-user__notification{align-items:center;background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);border-radius:50%;box-sizing:content-box;display:flex;height:15px;justify-content:center;overflow:hidden;position:absolute;right:-7px;top:-8px;transform:translateZ(0);width:15px}.ck.ck-user__notification .ck-user__icon{background:var(--ck-color-base-background);color:var(--ck-color-annotation-info);height:19px;max-height:19px;max-width:19px;min-height:19px;min-width:19px;width:19px}`,""]);const g=d},181:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-dropdown-view-width:250px;--ck-ai-dropdown-view-list-max-height:250px}.ck.ck-ai-commands-search{width:var(--ck-ai-dropdown-view-width)}.ck.ck-ai-commands-search>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-ai-commands-search>.ck-labeled-field-view .ck-input{min-width:unset}.ck.ck-ai-commands-search>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-ai-commands-search>.ck-search__results>.ck-list{max-height:var(--ck-ai-dropdown-view-list-max-height);overflow:auto}",""]);const a=s},676:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-form-view-width:600px;--ck-ai-form-content-height:175px;--ck-ai-form-content-background:#fafafa;--ck-ai-form-history-font-size:.9em;--ck-ai-form-error-background:var(--ck-color-light-red)}.ck .ck-ai-form{max-width:100%;width:var(--ck-ai-form-view-width)}@media screen and (max-width:600px){.ck .ck-ai-form{--ck-ai-form-view-width:100vw}}.ck .ck-ai-form .ck-ai-form-content{padding:var(--ck-spacing-large);width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-input{width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper{border:1px solid var(--ck-color-base-border);border-radius:2px;max-height:var(--ck-ai-form-content-height);overflow-y:auto;width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area{background-color:var(--ck-ai-form-content-background);display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area.ck-ai-form__content-area--processing{--ck-color-text:var(--ck-color-input-disabled-text);background-color:var(--ck-color-input-disabled-background)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{box-sizing:content-box;min-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base));padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);white-space:normal;width:100%}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-right:0}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-left:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field>*{color:inherit;white-space:normal}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button-wrapper{display:flex;flex-direction:column-reverse;padding-left:2px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button{bottom:1px;min-height:unset;min-width:unset;padding:4px;position:sticky;right:1px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button svg{--ck-icon-size:16px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button.ck-ai-form__copy-button--copied{color:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__toolbar{border:none;margin-bottom:calc(var(--ck-spacing-medium)*2);margin-top:var(--ck-spacing-medium);padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader{align-items:center;display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader .ck-spinner{box-sizing:border-box}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete{display:flex;justify-content:space-between}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view{flex-grow:1}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{border-color:var(--ck-ai-form-submit-button-border-color);color:var(--ck-ai-form-submit-button-text-color)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-left:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-right:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit.ck-disabled{border-color:var(--ck-ai-form-submit-button-disabled-border-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{bottom:var(--ck-spacing-small);font-size:var(--ck-font-size-tiny);min-height:unset;min-width:unset;padding:4px;position:absolute;top:var(--ck-spacing-small)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{left:var(--ck-spacing-medium)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-right:30px}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-left:30px}@media screen and (max-width:600px){.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{--ck-input-width:auto}}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto;grid-column-gap:0;grid-row-gap:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>span{grid-area:1/1/2/2}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button{background:none;font-size:var(--ck-ai-form-history-font-size);grid-area:1/2/2/3;justify-self:start;margin:var(--ck-spacing-medium) 0 0;min-height:auto;padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label{line-height:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label:hover{text-decoration:underline}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list{grid-area:2/1/3/3}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list .ck-list__item .ck-button .ck-button__label{font-size:var(--ck-ai-form-history-font-size);line-height:var(--ck-line-height-base);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck .ck-ai-form .ck-ai-form__error{align-items:center;background-color:var(--ck-ai-form-error-background);border-radius:2px;color:var(--ck-color-base-text);display:flex;justify-content:center;margin-bottom:var(--ck-spacing-medium);padding:var(--ck-spacing-medium)}",""]);const a=s},379:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-form-submit-button-text-color:var(--ck-color-text);--ck-ai-form-submit-button-border-color:transparent;--ck-ai-form-submit-button-disabled-border-color:transparent;--ck-ai-toolbar-button-hover-color:var(--ck-color-text);--ck-color-ai-selection:rgba(31,176,255,.3)}.ck-ai-assistant-ui_theme{--ck-color-button-default-hover-background:#f3ecff;--ck-color-button-default-active-background:#f3ecff;--ck-color-button-on-background:#f3ecff;--ck-color-button-on-hover-background:#f3ecff;--ck-color-button-on-active-background:#f3ecff;--ck-color-button-on-disabled-background:#f3ecff;--ck-color-button-on-color:#743ccd;--ck-color-button-action-background:#743ccd;--ck-color-button-action-hover-background:#6c34c9;--ck-color-button-action-active-background:#6c34c9;--ck-color-button-action-disabled-background:#ba9de6;--ck-color-list-button-hover-background:#f3ecff;--ck-ai-form-content-background:#f9f9f9;--ck-ai-form-submit-button-text-color:var(--ck-color-button-on-color);--ck-ai-form-submit-button-border-color:var(--ck-color-button-action-background);--ck-ai-form-submit-button-disabled-border-color:var(--ck-color-button-action-disabled-background);--ck-ai-toolbar-button-hover-color:var(--ck-color-button-on-color);--ck-color-ai-selection:#e2d6f5}.ck-ai-assistant-button:hover,.ck-ai-commands-dropdown>.ck-button:hover{color:var(--ck-ai-toolbar-button-hover-color)}.ck span.ck-fake-ai-selection{background:var(--ck-color-ai-selection)}.ck .ck-widget.ck-fake-ai-selection{outline-color:var(--ck-color-ai-selection)}.ck span.ck-fake-ai-selection-candidate{background:var(--ck-color-ai-selection)}.ck .ck-fake-ai-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}.ck.ck-content.ck-ai-form__content-field h2{font-size:1.3em}.ck.ck-content.ck-ai-form__content-field h3{font-size:1.2em}.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6{font-size:1.1em}.ck.ck-content.ck-ai-form__content-field h2,.ck.ck-content.ck-ai-form__content-field h3,.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6,.ck.ck-content.ck-ai-form__content-field ol,.ck.ck-content.ck-ai-form__content-field p,.ck.ck-content.ck-ai-form__content-field ul{line-height:1.7em;margin-block-end:.5em;margin-block-start:.5em}.ck.ck-content.ck-ai-form__content-field>:first-child{margin-top:0}.ck.ck-content.ck-ai-form__content-field>:last-child{margin-bottom:0}",""]);const a=s},433:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var u=0;u<e.length;u++){var d=[].concat(e[u]);n&&s[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},220:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},168:e=>{"use strict";e.exports=function(e){return e[1]}},673:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},s=[],a=0;a<e.length;a++){var c=e[a],u=n.base?c[0]+n.base:c[0],d=i[u]||0,l="".concat(u," ").concat(d);i[u]=d+1;var g=r(l),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==g)t[g].references++,t[g].updater(h);else{var p=o(h,n);n.byIndex=a,t.splice(a,0,{identifier:l,updater:p,references:1})}s.push(l)}return s}function o(e,t){var r=t.domAPI(t);r.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=r(i[s]);t[a].references--}for(var c=n(e,o),u=0;u<i.length;u++){var d=r(i[u]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}i=c}}},262:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},357:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},667:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])}))}},545:e=>{"use strict";var t,r=(t=[],function(e,r){return t[e]=r,t.filter(Boolean).join("\n")});function n(e,t,n,o){var i;if(n)i="";else{i="",o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,s&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}")}if(e.styleSheet)e.styleSheet.cssText=r(t,i);else{var a=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(a,c[t]):e.appendChild(a)}}var o={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=o.singletonCounter++,r=o.singleton||(o.singleton=e.insertStyleElement(e));return{update:function(e){n(r,t,!1,e)},remove:function(e){n(r,t,!0,e)}}}},182:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath fill=%27%23FFF%27 d=%27M9.8 20H2c0-5.7 5-5.7 6-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5 0-2.8 2-5.2 4.3-5.2S14 4.4 14 7.3c0 2.2-1 4-2.6 5l.2.6c1.2 1.3 6 1.4 6 7H9.8z%27/%3E%3C/svg%3E"},331:(e,t,r)=>{e.exports=r(237)("./src/clipboard.js")},782:(e,t,r)=>{e.exports=r(237)("./src/core.js")},783:(e,t,r)=>{e.exports=r(237)("./src/engine.js")},311:(e,t,r)=>{e.exports=r(237)("./src/ui.js")},584:(e,t,r)=>{e.exports=r(237)("./src/utils.js")},237:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.b=document.baseURI||self.location.href;var n={};(()=>{"use strict";r.r(n),r.d(n,{AIAdapter:()=>W,AIAssistant:()=>Bt,AIRequestError:()=>J,AITextAdapter:()=>Ht,AWSTextAdapter:()=>Vc,OpenAITextAdapter:()=>Vt});var e=r(782),t=r(584),o=r(311);e.ContextPlugin;var i=r(673),s=r.n(i),a=r(545),c=r.n(a),u=r(262),d=r.n(u),l=r(667),g=r.n(l),h=r(357),p=r.n(h),f=r(332),m={attributes:{"data-cke":!0}};m.setAttributes=g(),m.insert=d().bind(null,"head"),m.domAPI=c(),m.insertStyleElement=p();s()(f.A,m);f.A&&f.A.locals&&f.A.locals;e.ContextPlugin;var k=r(533),b={attributes:{"data-cke":!0}};b.setAttributes=g(),b.insert=d().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=p();s()(k.A,b);k.A&&k.A.locals&&k.A.locals;o.View;o.View;o.View;var v=r(961),w={attributes:{"data-cke":!0}};w.setAttributes=g(),w.insert=d().bind(null,"head"),w.domAPI=c(),w.insertStyleElement=p();s()(v.A,w);v.A&&v.A.locals&&v.A.locals;var y=r(163),_={attributes:{"data-cke":!0}};_.setAttributes=g(),_.insert=d().bind(null,"head"),_.domAPI=c(),_.insertStyleElement=p();s()(y.A,_);y.A&&y.A.locals&&y.A.locals;var A=r(142),S={attributes:{"data-cke":!0}};S.setAttributes=g(),S.insert=d().bind(null,"head"),S.domAPI=c(),S.insertStyleElement=p();s()(A.A,S);A.A&&A.A.locals&&A.A.locals;var x=r(258),E={attributes:{"data-cke":!0}};E.setAttributes=g(),E.insert=d().bind(null,"head"),E.domAPI=c(),E.insertStyleElement=p();s()(x.A,E);x.A&&x.A.locals&&x.A.locals;var I=r(967),R={attributes:{"data-cke":!0}};R.setAttributes=g(),R.insert=d().bind(null,"head"),R.domAPI=c(),R.insertStyleElement=p();s()(I.A,R);I.A&&I.A.locals&&I.A.locals;var P=r(906),M={attributes:{"data-cke":!0}};M.setAttributes=g(),M.insert=d().bind(null,"head"),M.domAPI=c(),M.insertStyleElement=p();s()(P.A,M);P.A&&P.A.locals&&P.A.locals;var C=r(938),T={attributes:{"data-cke":!0}};T.setAttributes=g(),T.insert=d().bind(null,"head"),T.domAPI=c(),T.insertStyleElement=p();s()(C.A,T);C.A&&C.A.locals&&C.A.locals;var O=r(751),L={attributes:{"data-cke":!0}};L.setAttributes=g(),L.insert=d().bind(null,"head"),L.domAPI=c(),L.insertStyleElement=p();s()(O.A,L);O.A&&O.A.locals&&O.A.locals;var N=r(901),$={attributes:{"data-cke":!0}};$.setAttributes=g(),$.insert=d().bind(null,"head"),$.domAPI=c(),$.insertStyleElement=p();s()(N.A,$);N.A&&N.A.locals&&N.A.locals;var B=r(507),F={attributes:{"data-cke":!0}};F.setAttributes=g(),F.insert=d().bind(null,"head"),F.domAPI=c(),F.insertStyleElement=p();s()(B.A,F);B.A&&B.A.locals&&B.A.locals;const U={paintRoller:'<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3Z"/><path d="M16 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 16 6.449V3.25Z"/></svg>\n',robotPencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.61 2.66a1.406 1.406 0 1 0-1.407 0v.891H3.28a2.11 2.11 0 0 0-2.11 2.11v10.312a2.11 2.11 0 0 0 2.11 2.109h5.684l-.054-1.157.18-.25H3.28a.703.703 0 0 1-.703-.702V5.66c0-.389.315-.704.703-.704h11.25c.388 0 .703.315.703.704v2.484l.358-.497a2.492 2.492 0 0 1 1.048-.84V5.66a2.11 2.11 0 0 0-2.11-2.11H9.61v-.89Z"/><path d="M5.625 10.817c.518 0 .937-.63.937-1.407 0-.776-.42-1.406-.937-1.406-.518 0-.938.63-.938 1.406 0 .777.42 1.407.938 1.407Z"/><path d="M13.125 9.41c0 .777-.42 1.407-.938 1.407s-.937-.63-.937-1.407c0-.776.42-1.406.937-1.406.518 0 .938.63.938 1.406Z"/><path d="M.937 8.004A.937.937 0 0 0 0 8.942v1.875c0 .517.42.937.937.937v-3.75Z"/><path d="M6.128 12.51a.782.782 0 0 1 1.085.216c.272.408.907.707 1.693.707s1.421-.3 1.693-.707a.782.782 0 0 1 1.302.868c-.666 1-1.906 1.403-2.995 1.403-1.089 0-2.329-.404-2.995-1.403a.782.782 0 0 1 .217-1.085Z"/><path d="m16.987 8.91-.622.864 2.879 2.074.622-.864a.71.71 0 0 0-.161-.99l-1.728-1.245a.71.71 0 0 0-.99.161Z"/><path d="M11.635 19.951a.355.355 0 0 1-.449-.31l-.214-2.38 4.978-6.911 2.88 2.074-4.978 6.91-2.217.617Z"/></svg>',tableOfContents:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 19a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8.022a6.47 6.47 0 0 0-1.5-.709V2a.5.5 0 0 0-.5-.5H3a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h6.313c.173.534.412 1.037.709 1.5H3Z"/><path d="M9.174 14a6.489 6.489 0 0 0-.155 1H6v-1h3.174Z"/><path d="M10.022 12c-.202.316-.378.65-.524 1H4v-1h6.022Z"/><path d="M12.034 10c-.448.283-.86.62-1.224 1H6v-1h6.034Z"/><path d="M12 4v1H4V4h8Z"/><path d="M14 7V6H6v1h8Z"/><path d="M15 9V8H7v1h8Z"/><path clip-rule="evenodd" d="M20 15.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM15.5 13a.5.5 0 0 0-.5.5V15h-1.5a.5.5 0 0 0 0 1H15v1.5a.5.5 0 0 0 1 0V16h1.5a.5.5 0 0 0 0-1H16v-1.5a.5.5 0 0 0-.5-.5Z"/></svg>\n',template:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8 0H3a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2ZM2.5 2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V2Z"/><path clip-rule="evenodd" d="M13 0h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5h-5Z"/><path clip-rule="evenodd" d="M13 10h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-5Z"/></svg>',caseChange:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.789 3 0 17h1.664l1.664-4.027h6.797l.227.548c.046-.172.112-.352.209-.545.217-.436.556-.609.898-.798L7.664 3H5.79Zm.938 1.758 2.777 6.715H3.949l2.778-6.715Z"/><path d="M15.956 7.5c-1.584-.02-3.226.824-3.843 2.882l1.495.106c.904-2.082 4.594-2.13 4.375.534-3.245 1.024-4.838.117-6.082 2.62-.208.418-.17 1.57.54 2.397.71.826 2.014 1.149 3.409.85 1.395-.299 2.24-1.386 2.24-1.386L18.205 17h1.493l-.059-1.72-.056-5.274C19.51 8.612 17.75 7.524 15.956 7.5Zm2.027 4.696s.641 2.453-1.528 3.27c-3.376 1.269-4.188-2.141-1.775-2.638 1.704-.352 1.873-.25 3.303-.632Z"/></svg>'};function D(e,t){const r=(0,t.t)("Other");return e.length?"groupId"in e[0]?e:[{groupId:"_ungrouppedCommands",groupLabel:r,order:1/0,commands:e}]:[{groupId:"_ungrouppedCommands",groupLabel:r,order:1/0,commands:[]}]}const H=j;function j(e,t){const r=q();return(j=function(e,t){return r[e-=222]})(e,t)}!function(e){const t=j,r=e();for(;;)try{if(515248===-parseInt(t(225))/1*(-parseInt(t(269))/2)+parseInt(t(257))/3+-parseInt(t(267))/4+parseInt(t(252))/5+parseInt(t(292))/6+parseInt(t(254))/7+parseInt(t(238))/8*(-parseInt(t(242))/9))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(q);const z=H(227);function q(){const e=["923835EbUpOb","createPositionAfter","4718728UrmXkP","isContent","createSelection","1651893hmekgF","init","has","processor","href","insertContentBelow","createRange","editingDowncast","map","setSelection","1805688SpTRWO","markerToElement","3748vzDZbi","selection","isOfficialPlugin","addClass","push","showFakeVisualSelection","length","fromCharCode","AIAssistantEditing","ai.useTheme","end","markerToHighlight","createUIElement","get","data","start","isPremiumPlugin","pluginName","conversion","from","getLastMatchingPosition","getSelectedBlocks","addMarker","628752siFQof","schema","getFirstRange","updateMarker","for","markerRange","239QdyNoq","getRange","ai-ui","editor","ck-fake-ai-selection","canEditAt","model","ck-fake-ai-selection_collapsed","isCollapsed","config","markers","document","toView","40Untgsc","insertContent","ck-ai-assistant-ui_theme","isAtEnd","1791918EFdEcn","hideFakeVisualSelection","getLastPosition","removeMarker","pop","change","afterInit","toModel","join","span"];return(q=function(){return e})()}class V extends e.Plugin{static get[H(286)](){return H(277)}static get[H(271)](){return!0}static get[H(285)](){return!0}[H(258)](){const e=H,{editor:t}=this,r=[e(229)];t[e(234)][e(282)](e(278))&&r[e(273)](e(240)),t[e(287)][e(223)](e(264))[e(280)]({model:z,view:{classes:r,priority:12}}),t[e(287)][e(223)](e(264))[e(268)]({model:z,view:(t,{writer:r})=>{const n=e;if(!t[n(224)][n(233)])return null;const o=r[n(281)](n(251));return r[n(272)]([n(229),n(232)],o),o}})}[H(248)](){!async function(e){const r=f([73,55,69,109,68,52,53,65,113,84,54,107,72,119,114,82,99,70,80,88,117,71,87,50,67,102,51,49,115,48,120,105,90,57,110,76,100,121,111,97,85,104,122,106,108,116,103,78,101,56,66,89,75,83,118,86,77,98,74,79,81,112]),n=window[f([68,97,116,101])][f([110,111,119])](),o=e[f([101,100,105,116,111,114])],i=new(window[f([80,114,111,109,105,115,101])])((e=>{o[f([111,110,99,101])](f([114,101,97,100,121]),e)})),s={[f([107,116,121])]:f([69,67]),[f([117,115,101])]:f([115,105,103]),[f([99,114,118])]:f([80,45,50,53,54]),[f([120])]:f([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[f([121])]:f([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[f([97,108,103])]:f([69,83,50,53,54])},a=o[f([99,111,110,102,105,103])][f([103,101,116])](f([108,105,99,101,110,115,101,75,101,121]));function c(e){const t=[new(window[f([80,114,111,109,105,115,101])])((e=>setTimeout(e,605900))),i[f([116,104,101,110])]((()=>new(window[f([80,114,111,109,105,115,101])])((e=>{let t=0;o[f([109,111,100,101,108])][f([111,110])](f([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((r,n)=>{n[0][f([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504==t&&(e(),r[f([111,102,102])]())}))}))))];return window[f([80,114,111,109,105,115,101])][f([114,97,99,101])](t)[f([116,104,101,110])]((()=>e))}function u(e){return e[f([115,116,97,114,116,115,87,105,116,104])](f([101,121]))?JSON[f([112,97,114,115,101])](d(e)):null}function d(e){return window[f([97,116,111,98])](e[f([114,101,112,108,97,99,101])](/-/g,f([43]))[f([114,101,112,108,97,99,101])](/_/g,f([47])))}function l(e){let t=5381;function r(e){for(let r=0;r<e[f([108,101,110,103,116,104])];r++){const n=e[f([99,104,97,114,67,111,100,101,65,116])](r);t=(t<<5)+t+n,t&=t}}return function e(t){Array[f([105,115,65,114,114,97,121])](t)?t[f([102,111,114,69,97,99,104])](e):t&&typeof t==f([111,98,106,101,99,116])?Object[f([101,110,116,114,105,101,115])](t)[f([115,111,114,116])]()[f([102,111,114,69,97,99,104])]((([t,n])=>{r(t),e(n)})):r(window[f([83,116,114,105,110,103])](t))}(e),t>>>0}function g(e){return e[f([116,111,83,116,114,105,110,103])](16)[f([112,97,100,83,116,97,114,116])](8,f([48]))}function h(e){return e[f([115,112,108,105,116])]("")[f([114,101,118,101,114,115,101])]()[f([106,111,105,110])]("")}function p(){}function f(e){const t=j;return e[t(265)]((e=>String[t(276)](e)))[t(250)]("")}!function(e){const t=function(){const e=window[f([83,116,114,105,110,103])](window[f([112,101,114,102,111,114,109,97,110,99,101])][f([110,111,119])]())[f([114,101,112,108,97,99,101])](f([46]),"");let t=f([73]);for(let n=0;n<e[f([108,101,110,103,116,104])];n+=2){let o=window[f([112,97,114,115,101,73,110,116])](e[f([115,117,98,115,116,114,105,110,103])](n,n+2));o>=r[f([108,101,110,103,116,104])]&&(o-=r[f([108,101,110,103,116,104])]),t+=r[o]}return t}();o[t]=f([97,105,76,105,99,101,110,115,101,75,101,121])+e,e!=f([86,97,108,105,100])&&async function(){await i,o[f([109,111,100,101,108])][f([99,104,97,110,103,101])]=p,o[f([109,111,100,101,108])][f([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,o[f([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](f([109,111,100,101,108]))}()}(await async function(){let e,r=null,p=null;try{return a==f([71,80,76])?f([78,111,116,65,108,108,111,119,101,100]):(e=function(){const e=a[f([115,112,108,105,116])](f([46]));return 3!=e[f([108,101,110,103,116,104])]?null:t(e[1]);function t(e){const t=u(e);return t&&r()?t:null;function r(){const e=t[f([106,116,105])],r=window[f([112,97,114,115,101,73,110,116])](e[f([115,117,98,115,116,114,105,110,103])](e[f([108,101,110,103,116,104])]-8),16),n={...t,[f([106,116,105])]:e[f([115,117,98,115,116,114,105,110,103])](0,e[f([108,101,110,103,116,104])]-8)};return delete n[f([118,99])],l(n)==r}}}(),e?(e[f([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(e,r){return new(window[f([80,114,111,109,105,115,101])])((c=>{if(s())return c(f([86,97,108,105,100]));a(),o[f([100,101,99,111,114,97,116,101])](f([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let u=!1;const d=(0,t.uid)();function p(e){return!!e&&(typeof e===f([111,98,106,101,99,116])||typeof e===f([102,117,110,99,116,105,111,110]))&&typeof e[f([116,104,101,110])]===f([102,117,110,99,116,105,111,110])&&typeof e[f([99,97,116,99,104])]===f([102,117,110,99,116,105,111,110])}function m(t){a(t)[f([116,104,101,110])]((e=>e&&e[f([115,116,97,116,117,115])]==f([111,107])?g(l(d+r))!=e[f([118,101,114,105,102,105,99,97,116,105,111,110])]?f([85,115,97,103,101,76,105,109,105,116]):f([86,97,108,105,100]):f([85,115,97,103,101,76,105,109,105,116])))[f([116,104,101,110])]((e=>(i(),e)),(()=>{const e=s();return null==e?(i(),f([86,97,108,105,100])):f(n-e>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])}))[f([116,104,101,110])](c)[f([99,97,116,99,104])]((()=>{c(f([85,115,97,103,101,76,105,109,105,116]))}));const o=36e5;function i(){const t=f([108,108,99,116,45])+g(l(e)),r=h(g(window[f([77,97,116,104])][f([99,101,105,108])](n/o)));window[f([108,111,99,97,108,83,116,111,114,97,103,101])][f([115,101,116,73,116,101,109])](t,r)}function s(){const t=f([108,108,99,116,45])+g(l(e)),r=window[f([108,111,99,97,108,83,116,111,114,97,103,101])][f([103,101,116,73,116,101,109])](t);return r?window[f([112,97,114,115,101,73,110,116])](h(r),16)*o:null}function a(e){return new(window[f([80,114,111,109,105,115,101])])(((t,r)=>{e[f([116,104,101,110])](t,r),window[f([115,101,116,84,105,109,101,111,117,116])](r,12e4)}))}}o[f([111,110])](f([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),((t,r)=>{if(r[0]!=e)return c(f([85,115,97,103,101,76,105,109,105,116]));r[1]={...r[1],[f([114,101,113,117,101,115,116,73,100])]:d}}),{[f([112,114,105,111,114,105,116,121])]:f([104,105,103,104])}),o[f([111,110])](f([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e=>{p(e[f([114,101,116,117,114,110])])&&(u=!0,m(e[f([114,101,116,117,114,110])]))}),{[f([112,114,105,111,114,105,116,121])]:f([108,111,119])}),i[f([116,104,101,110])]((()=>{u||c(f([85,115,97,103,101,76,105,109,105,116]))}))}));function s(){return o[f([101,100,105,116,105,110,103])][f([118,105,101,119])][f([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==f([97,117,116,111])}function a(){o[f([101,100,105,116,105,110,103])][f([118,105,101,119])][f([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=f([97,117,116,111])}}(e[f([117,115,97,103,101,69,110,100,112,111,105,110,116])],e[f([106,116,105])])),await async function(){let e=!0;try{const n=a[f([115,112,108,105,116])](f([46])),[o,i,s]=n;return t(o),await r(o,i,s),e}catch(e){return!1}function t(t){const r=u(t);r&&r[f([97,108,103])]==f([69,83,50,53,54])||(e=!1)}async function r(t,r,n){const o=window[f([85,105,110,116,56,65,114,114,97,121])][f([102,114,111,109])](d(n),(e=>e[f([99,104,97,114,67,111,100,101,65,116])](0))),i=(new(window[f([84,101,120,116,69,110,99,111,100,101,114])]))[f([101,110,99,111,100,101])](t+f([46])+r),a=window[f([99,114,121,112,116,111])][f([115,117,98,116,108,101])];if(!a)return;const c=await a[f([105,109,112,111,114,116,75,101,121])](f([106,119,107]),s,{[f([110,97,109,101])]:f([69,67,68,83,65]),[f([110,97,109,101,100,67,117,114,118,101])]:f([80,45,50,53,54])},!1,[f([118,101,114,105,102,121])]);await a[f([118,101,114,105,102,121])]({[f([110,97,109,101])]:f([69,67,68,83,65]),[f([104,97,115,104])]:{[f([110,97,109,101])]:f([83,72,65,45,50,53,54])}},c,o,i)||(e=!1)}}()?function(){const t=e[f([102,101,97,116,117,114,101,115])];return!(!t||!t[f([105,110,99,108,117,100,101,115])](f([42]))&&!t[f([105,110,99,108,117,100,101,115])](f([65,73])))}()?function(){const t=[f([101,118,97,108,117,97,116,105,111,110]),f([116,114,105,97,108])][f([105,110,99,108,117,100,101,115])](e[f([108,105,99,101,110,115,101,84,121,112,101])])?n/1e3:1733875200;return e[f([101,120,112])]<t}()?f([69,120,112,105,114,101,100]):function(){const t=j,r=e[f([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!r||0==r[f([108,101,110,103,116,104])])return!0;const{hostname:n}=new URL(window[f([108,111,99,97,116,105,111,110])][t(261)]);if(r[f([105,110,99,108,117,100,101,115])](n))return!0;const o=n[f([115,112,108,105,116])](f([46]));return r[f([102,105,108,116,101,114])]((e=>e[f([105,110,99,108,117,100,101,115])](f([42]))))[f([109,97,112])]((e=>e[f([115,112,108,105,116])](f([46]))))[f([115,111,109,101])]((e=>o[f([101,118,101,114,121])](((t,r)=>e[r]===t||e[r]===f([42])))))}()?(e[f([108,105,99,101,110,115,101,84,121,112,101])]==f([101,118,97,108,117,97,116,105,111,110])&&(r=c(f([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),e[f([108,105,99,101,110,115,101,84,121,112,101])]==f([116,114,105,97,108])&&(r=c(f([84,114,105,97,108,76,105,109,105,116]))),e[f([108,105,99,101,110,115,101,84,121,112,101])]==f([100,101,118,101,108,111,112,109,101,110,116])&&(r=c(f([68,101,118,101,108,111,112,109,101,110,116,76,105,109,105,116]))),await(r&&p?new(window[f([80,114,111,109,105,115,101])])(((e,t)=>{r[f([116,104,101,110])](e,t),p[f([116,104,101,110])]((t=>{t!=f([86,97,108,105,100])&&e(t)}),t)})):r||p||f([86,97,108,105,100]))):f([68,111,109,97,105,110,76,105,109,105,116]):f([78,111,116,65,108,108,111,119,101,100]):f([73,110,118,97,108,105,100])):f([73,110,118,97,108,105,100]))}catch(e){return f([73,110,118,97,108,105,100])}}())}(this)}[H(274)](){const e=H,t=this[e(228)][e(231)];t[e(247)]((r=>{const n=e,o=t[n(236)][n(270)][n(294)]();if(t[n(235)][n(259)](z))r[n(222)](z,{range:o});else if(o[n(284)][n(241)]){const e=o[n(284)][n(289)]((({item:e})=>!t[n(293)][n(255)](e)),{boundaries:o});r[n(291)](z,{usingOperation:!1,affectsData:!1,range:r[n(263)](e,o[n(279)])})}else r[n(291)](z,{usingOperation:!1,affectsData:!1,range:o})}))}[H(243)](){const e=H,t=this[e(228)][e(231)];t[e(235)][e(259)](z)&&t[e(247)]((t=>{t[e(245)](z)}))}[H(239)](e,t){const r=H,n=t||this[r(228)][r(231)][r(235)][r(282)](z)[r(226)]();if(!this[r(228)][r(231)][r(230)](n))return;const o=this[r(228)][r(283)][r(260)][r(237)](e),i=this[r(228)][r(283)][r(249)](o);this[r(228)][r(231)][r(247)]((e=>{const t=r;this[t(243)]();const o=this[t(228)][t(231)][t(239)](i,n);o&&e[t(266)](o)}))}[H(262)](e){const t=H,{model:r}=this[t(228)],n=Array[t(288)](r[t(256)](this[t(228)][t(231)][t(235)][t(282)](z)[t(226)]())[t(290)]()),o=n[t(275)]?r[t(253)](n[t(246)]()):r[t(236)][t(270)][t(244)]();this[t(239)](e,o)}}var G=K;!function(e){for(var t=K,r=e();;)try{if(879679===parseInt(t(346))/1*(-parseInt(t(329))/2)+parseInt(t(345))/3*(-parseInt(t(347))/4)+parseInt(t(330))/5+parseInt(t(333))/6+-parseInt(t(341))/7*(-parseInt(t(337))/8)+parseInt(t(339))/9+parseInt(t(334))/10*(-parseInt(t(336))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Z);class W extends e.Plugin{static get[G(340)](){return G(344)}static get[G(328)](){return!0}static get[G(342)](){return!0}[G(343)](){var e=G;if(!this[e(335)])throw new t.CKEditorError(e(331),null)}}function Z(){var e=["23202VwoYAE","105654ERLRlo","144shCkOd","isOfficialPlugin","2tozDLI","3428565bNguDB","aiadapter-text-adapter-not-set","AIRequestError","835854nbzCQE","15413670GDytXD","textAdapter","11wGoGAS","8BFFtPd","name","6497883yLuTZC","pluginName","8806805VayGkS","isPremiumPlugin","afterInit","AIAdapter"];return(Z=function(){return e})()}function K(e,t){var r=Z();return(K=function(e,t){return r[e-=328]})(e,t)}class J extends Error{constructor(e){var t=G;super(e),this[t(338)]=t(332)}}function Q(e,t,r){const n=e.t;switch(t){case"Edit or review":return n("Edit or review");case"Improve writing":return n("Improve writing");case"Make shorter":return n("Make shorter");case"Make longer":return n("Make longer");case"Simplify language":return n("Simplify language");case"Generate from selection":return n("Generate from selection");case"Summarize":return n("Summarize");case"Continue":return n("Continue");case"Change tone":return n("Change tone");case"Professional":return n("Professional");case"Casual":return n("Casual");case"Direct":return n("Direct");case"Confident":return n("Confident");case"Friendly":return n("Friendly");case"Change style":return n("Change style");case"Business":return n("Business");case"Legal":return n("Legal");case"Journalism":return n("Journalism");case"Poetic":return n("Poetic");case"Translate":return n("Translate");case"English":return n("English");case"Spanish":return n("Spanish");case"German":return n("German");case"Portuguese":return n("Portuguese");case"French":return n("French");case"Simplified Chinese":return n("Simplified Chinese");case"Hindi":return n("Hindi");case"Arabic":return n("Arabic");case"AI Assistant":return n("AI Assistant");case"AI Commands":return n("AI Commands");case"Ask AI to edit or generate":return n("Ask AI to edit or generate");case"Ask AI to improve generated text":return n("Ask AI to improve generated text");case"Copy":return n("Copy");case"Submit":return n("Submit");case"Insert below":return n("Insert below");case"Try again":return n("Try again");case"Stop":return n("Stop");case"AI is writing...":return n("AI is writing...");case"AI is writing":return n("AI is writing");case"Generated content: %0":return n("Generated content: %0",r);case"Error during AI content generation: %0":return n("Error during AI content generation: %0",r);case"History":return n("History");case"Empty history":return n("Empty history");case"Ask AI and your prompts will be listed here for you to use later.":return n("Ask AI and your prompts will be listed here for you to use later.");case"Prompt history":return n("Prompt history");case"Clear":return n("Clear");case"AI_REPLACE_CONTENT":return n({id:"AI_REPLACE_CONTENT",string:"Replace"});case"AI_INSERT_CONTENT":return n({id:"AI_INSERT_CONTENT",string:"Insert"});case"AI_ERROR_GET_HEADERS":return n({id:"AI_ERROR_GET_HEADERS",string:"Preparing request headers failed"});case"AI_ERROR_GET_PARAMETERS":return n({id:"AI_ERROR_GET_PARAMETERS",string:"Preparing request parameters failed"});case"AI_ERROR_UNSUPPORTED_MODEL":return n({id:"AI_ERROR_UNSUPPORTED_MODEL",string:'The requested AI model ("%0") is not supported'},r);case"AI_ERROR_CONTEXT_LENGTH":return n({id:"AI_ERROR_CONTEXT_LENGTH",string:"Selected content is too long"});case"AI_ERROR_MODERATION":return n({id:"AI_ERROR_MODERATION",string:"Requested query does not pass moderation rules"});case"AI_ERROR_FAILED":return n({id:"AI_ERROR_FAILED",string:"Failed to communicate with the AI service"});default:return t}}function Y(){const e=["180lFToEC","_hasContext","name","document","getRanges","length","includes","custom","set","enabledCommandsIds","values","execute","change:_hasContext","showUI","getItems","9thllGp","2542818UrRRsg","model","config","plugins","getSelectedBlocks","250996JUvaGN","isEnabled","refresh","447862mIkALR","isEmpty","from","requiresContent","add","7273090CgcKPL","ai.aiAssistant.disabledElements","8408TCCHSE","_commandDefinitions","get","hasContent","4591573CKzWfy","8yOKHgh","change:isEnabled","2016759KKimGj","isCollapsed","getFirstRange","element","selection","editor"];return(Y=function(){return e})()}const X=ee;function ee(e,t){const r=Y();return(ee=function(e,t){return r[e-=382]})(e,t)}!function(e){const t=ee,r=e();for(;;)try{if(826112===parseInt(t(388))/1+parseInt(t(385))/2+parseInt(t(402))/3+parseInt(t(395))/4*(parseInt(t(408))/5)+-parseInt(t(424))/6+-parseInt(t(399))/7*(-parseInt(t(400))/8)+-parseInt(t(423))/9*(parseInt(t(393))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Y);class te extends e.Command{constructor(e,t){const r=ee;super(e),this[r(396)]=t,this[r(416)](r(417),[]),this.on(r(420),((e,t,n)=>{const o=r;this[o(386)]&&(this[o(417)]=re(this[o(396)],n))})),this[r(416)](r(409),!1),this.on(r(401),((e,t,n)=>{const o=r;this[o(417)]=n?re(this[o(396)],this[o(409)]):[]}))}[X(387)](){const e=X,t=this[e(407)][e(425)];this[e(409)]=function(t){const r=e,n=t[r(411)][r(406)];return n[r(403)]?0!==[...n[r(384)]()][r(413)]&&![...n[r(384)]()][0][r(389)]:!!t[r(398)](n[r(404)]())}(t);const r=t[e(411)][e(406)],n=this[e(407)][e(382)][e(397)](e(394));for(const t of r[e(412)]())for(const r of t[e(422)]())if(r.is(e(405))&&n[e(414)](r[e(410)]))return void(this[e(386)]=!1);this[e(386)]=!0}[X(419)](e="",t="",r=X(415)){const n=X;this[n(407)][n(383)][n(397)](Ct)[n(421)](e,t,r)}}function re(e,t){const r=X,n=new Set;for(const o of e[r(418)]())(t||!1===o[r(391)])&&n[r(392)](o.id);return Array[r(390)](n)}var ne=r(783);const oe=se;function ie(){const e=["setContentOf","stringify","element","handleError","previousLabel","listenTo","endsWith","viewToDom","21qcEBFv","_sanitizationContainer","_stripMarkdownSyntax","editor","initialContext","11hPdPEP","_domParser","reverse","trim","then","mainAction","custom","view","105783BAOIni","processor","ELEMENT_NODE","domConverter","childNodes","213530VDHUZG","message","remove","toModel","submitPrompt","value","substring","abort","push","369840kwVzJl","_isH1TagSupportEnabled","serializeToString","previousActionId","div","destroy","startProcessing","6248439znYGPk","15oayVes","1315400TzHnld","makeRequest","```","```html","<h1></h1>","rename","innerHTML","2484720pBDFEQ","stopListening","currentResponse","previousQuery","set:currentContext","render","toView","startsWith","nodeType","_normalizeResponseHeadings","previousContext","length","document","tryAgainEvent","editing","htmlProcessor","finishProcessing","data","_sanitizeHTML","match","createElement","stopProcessing","parseFromString","prompt","name","textAdapter","finally","text/html","updateView","catch","_parseAndNormalizeContent","isRendered","from","_xmlSerializer","querySelector","currentContext","body","once","766638zpdqJd","reset","isProcessing","exec","2Adthxs","_handleQuery","set"];return(ie=function(){return e})()}function se(e,t){const r=ie();return(se=function(e,t){return r[e-=435]})(e,t)}!function(e){const t=se,r=e();for(;;)try{if(389589===parseInt(t(479))/1+parseInt(t(441))/2*(parseInt(t(465))/3)+-parseInt(t(495))/4+-parseInt(t(487))/5*(-parseInt(t(437))/6)+-parseInt(t(452))/7*(parseInt(t(488))/8)+parseInt(t(486))/9+parseInt(t(470))/10*(parseInt(t(457))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(ie);const ae=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,"is");class ce extends((0,t.ObservableMixin)()){constructor(e,t,r){const n=se;super(),this[n(455)]=e,this[n(520)]=t,this[n(453)]=document[n(515)](n(483)),this[n(458)]=new DOMParser,this[n(528)]=new XMLSerializer,this[n(464)]=r,this[n(443)]({initialContext:"",currentContext:"",currentResponse:"",previousContext:void 0,previousQuery:void 0,previousLabel:void 0,isProcessing:!1}),this.on(n(499),((e,t,r)=>{const o=n;this[o(464)][o(475)]=this[o(513)](r)})),this[n(449)](this[n(464)],n(474),((e,t)=>{const r=n,o=this[r(530)]||this[r(456)];this[r(442)](t,o,r(463))})),this[n(449)](this[n(464)],n(508),(()=>{const e=n;this[e(464)][e(518)]=this[e(448)],this[e(442)](this[e(498)],this[e(505)],this[e(482)],this[e(448)])})),this[n(449)](this[n(464)],n(516),(()=>{this[n(516)]()}))}[oe(484)](){this[oe(496)]()}async[oe(523)]({actionId:e,query:t,htmlContent:r,label:n,mainActionLabel:o}){const i=oe;this[i(464)][i(518)]=n,this[i(464)][i(462)]=o,this[i(456)]=r,t&&(this[i(464)][i(526)]?this[i(442)](t,r,e,n):this[i(464)][i(436)](i(500),(()=>{this[i(442)](t,r,e,n)})))}[oe(516)](){const e=oe;this[e(439)]&&(this[e(439)]=!1,this[e(464)][e(511)](),this[e(520)][e(477)]())}[oe(438)](){const e=oe;this[e(456)]="",this[e(530)]="",this[e(497)]="",this[e(505)]="",this[e(498)]="",this[e(448)]="",this[e(482)]=void 0,this[e(464)][e(438)](),this[e(516)]()}async[oe(442)](e,t,r,n){const o=oe;return this[o(439)]=!0,this[o(464)][o(485)](),this[o(505)]=t,this[o(498)]=e,this[o(448)]=n||e,this[o(482)]=r,new Promise((n=>{const i=o;this[i(520)][i(489)]({query:e,context:t,onData:e=>{const t=i;this[t(497)]=e,this[t(530)]=this[t(525)](this[t(497)])},actionId:r})[i(461)]((()=>{const e=i;!this[e(530)]&&this[e(497)]&&(this[e(530)]=this[e(525)](this[e(497)],!0))}))[i(524)]((e=>{const t=i;e instanceof J?this[t(464)][t(447)](e[t(471)]):this[t(464)][t(447)](),n()}))[i(521)]((()=>{this[i(516)](),n()}))}))}[oe(525)](e,t=!1){const r=oe,n=ae[r(440)](e);e=n?e[r(476)](n[1][r(506)]):e[r(506)]<100&&!t?"":this[r(454)](e);const o=this[r(458)][r(517)](e,r(522));if(n){const e=Array[r(527)](o[r(435)][r(469)]);e[r(459)]();for(const t of e){if(t[r(503)]==Node[r(467)])break;t[r(472)]()}}const i=this[r(455)][r(512)][r(466)][r(501)](this[r(528)][r(481)](o[r(435)]));return this[r(480)]()||this[r(504)](i),this[r(455)][r(512)][r(445)](this[r(455)][r(512)][r(473)](i))}[oe(504)](e){const t=oe,r=new ne.UpcastWriter(this[t(455)][t(509)][t(464)][t(507)]),n=new ne.Matcher({name:/^h[1-5]$/}),o=[];let i=!1;for(const r of e)r.is(t(446))&&n[t(514)](r)&&(o[t(478)](r),"h1"==r[t(519)]&&(i=!0));if(i)for(const e of o)r[t(493)]("h"+(parseInt(e[t(519)][1])+1),e)}[oe(480)](){const e=oe,{data:t,editing:r}=this[e(455)],n=t[e(510)][e(501)](e(492)),o=t[e(501)](t[e(473)](n));return!!r[e(464)][e(468)][e(451)](o)[e(529)]("h1")}[oe(513)](e){const t=oe;return this[t(455)][t(509)][t(464)][t(468)][t(444)](this[t(453)],e),this[t(453)][t(494)]}[oe(454)](e){const t=oe,r=e[t(460)]();return r[t(502)](t(491))?r[t(450)](t(490))?r[t(476)](7,r[t(506)]-3):r[t(476)](7):e}}const ue=de;function de(e,t){const r=le();return(de=function(e,t){return r[e-=471]})(e,t)}function le(){const e=["set","insert","190268ZjuTQI","bindTemplate","32NpIsfh","ck-ai-form__toolbar","addMany","768552xsuraE","3562584OeIFQH","4296761xIyyxc","label","toUpperCase","locale","stopButton","extendTemplate","replace","Stop","bind","ck-hidden","817240meTaGK","isVisible","insertButton","_createButton","ck-button-action","replaceButton","mainAction","125691kgdeTp","_CONTENT","Try again","REPLACE","AI_","tryAgainButton","Insert below","items","913930iwUmQb"];return(le=function(){return e})()}!function(e){const t=de,r=e();for(;;)try{if(360240===-parseInt(t(483))/1+-parseInt(t(500))/2+-parseInt(t(472))/3*(parseInt(t(485))/4)+parseInt(t(480))/5+parseInt(t(489))/6+parseInt(t(490))/7+-parseInt(t(488))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(le);const ge={REPLACE:ue(496),INSERT:ue(482)};class he extends o.ToolbarView{constructor(e){const t=ue;super(e),this[t(481)](t(501),!1),this[t(481)](t(471),ge[t(475)]),this[t(505)]=this[t(503)]("",t(504)),this[t(505)][t(498)](t(491)).to(this,t(471),(r=>Q(e,t(476)+r[t(492)]()+t(473)))),this[t(502)]=this[t(503)](Q(e,t(478))),this[t(477)]=this[t(503)](Q(e,t(474))),this[t(494)]=this[t(503)](Q(e,t(497)));const r=this[t(484)];this[t(495)]({attributes:{class:[t(486),r.if(t(501),t(499),(e=>!e))]}}),this[t(479)][t(487)]([this[t(505)],this[t(502)],this[t(477)],this[t(494)]])}[ue(503)](e,t){const r=ue,n=new o.ButtonView(this[r(493)]);return n[r(481)]({label:e,class:t||"",isVisible:!0,withText:!0}),n}}const pe='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.801a.7.7 0 0 0-.7.7v11.5a.8.8 0 0 1-1.6 0v-11.5a2.3 2.3 0 0 1 2.3-2.3h6.5a.8.8 0 0 1 0 1.6H5Zm.7 3.7a2.3 2.3 0 0 1 2.3-2.3h7a2.3 2.3 0 0 1 2.3 2.3v10a2.3 2.3 0 0 1-2.3 2.3H8a2.3 2.3 0 0 1-2.3-2.3v-10Zm2.3-.7a.7.7 0 0 0-.7.7v10a.7.7 0 0 0 .7.7h7a.7.7 0 0 0 .7-.7v-10a.7.7 0 0 0-.7-.7H8Z"/></svg>',fe=me;function me(e,t){const r=ke();return(me=function(e,t){return r[e-=108]})(e,t)}function ke(){const e=["isEnabled","locale","wheel","<span>[</span>","class","removeAllRanges","innerHTML","execute","ClipboardItem","ck-ai-form__content-area","746901RwUfiU","ck-hidden","copyButtonView","setEndBefore","getSelection","bindTemplate","651546tdFFXh"," ck-ai-form__copy-button--copied","-9999px","<span>]</span>","absolute","_createCopyButton","position","write","164778OPfmzj","setStartAfter","632xjkaEz","left","text/plain","change:isProcessing","check","ck-ai-form__copy-button","ck-ai-form__loader","ck-reset_all-excluded","appendLoader","Copy","ck-content","set","4dwMmBv","contentFieldView","mousedown","render","copy","7050645JTSvwV","createElement","textContent","firstElementChild","bind","smooth","loaderView","icon","isVisible","createRange","lastElementChild","ck-ai-form__content-field","AI is writing...","element","value",".ck-ai-form__loader","ck-ai-form__content-area--processing","appendChild","querySelector","div","listenTo","isProcessing","execCommand","focus","style","_copyHTMLToClipboard","_createLoader","clipboard","setContent","text/html","1461865JmAQDu","1246aCyJBC","remove","ck-ai-form__content-area-wrapper","body","setTemplate","addRange","change:value","1753566gbdbIo","ck-ai-form__copy-button-wrapper","scrollHeight","scrollTo"];return(ke=function(){return e})()}!function(e){const t=me,r=e();for(;;)try{if(225253===-parseInt(t(169))/1+parseInt(t(161))/2+parseInt(t(155))/3*(parseInt(t(183))/4)+parseInt(t(133))/5+parseInt(t(141))/6+-parseInt(t(134))/7*(-parseInt(t(171))/8)+-parseInt(t(188))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(ke);class be extends o.View{constructor(e,t=""){const r=me;super(e),this[r(182)]({value:null,isVisible:!1,isProcessing:!1});const n=this[r(160)];this[r(184)]=new ve(e,t),this[r(157)]=this[r(166)](),this[r(138)]({tag:r(122),attributes:{class:["ck",r(136),n.if(r(111),r(156),(e=>!e))],tabindex:"-1"},children:[{tag:r(122),attributes:{class:["ck",r(154),n.if(r(124),r(119))]},children:[this[r(184)],{tag:r(122),attributes:{class:["ck",r(142)]},children:[this[r(157)]]}]}]})}[fe(186)](){const e=fe;super[e(186)](),this[e(117)]&&this[e(184)][e(131)](this[e(117)]);let t=!1;this.on(e(140),((r,n,o)=>{const i=e,s=!this[i(184)][i(116)][i(121)](i(118));this[i(184)][i(131)](o),this[i(124)]&&s&&!t&&this[i(116)][i(144)]({top:this[i(116)][i(143)],behavior:i(108)})})),this.on(e(174),((r,n,o)=>{const i=e;t=!1,o?(this[i(117)]=null,this[i(184)][i(179)]()):this[i(117)]||this[i(184)][i(131)]("")})),this[e(123)](this[e(116)],e(147),(()=>{t=!0})),this[e(123)](this[e(116)],e(185),(()=>{t=!0}))}[fe(126)](){const e=fe;this[e(116)][e(126)]()}[fe(166)](){const t=fe,r=this[t(146)],n=new o.ButtonView(this[t(146)]),i=t(176);return n[t(182)]({label:Q(r,t(180)),icon:pe,class:i,tooltip:!0}),n[t(192)](t(111)).to(this,t(117),(e=>!!e)),n[t(192)](t(145)).to(this,t(124),(e=>!e)),n.on(t(152),(()=>{const r=t;this[r(128)](this[r(184)][r(116)]),n[r(110)]=e.icons[r(175)],n[r(149)]=i+r(162),this[r(126)](),setTimeout((()=>{const e=r;n[e(110)]=pe,n[e(149)]=i}),1e3)})),n}[fe(128)](e){const r=fe,{window:n,document:o}=t.global;if(n[r(153)]){const{Blob:t,ClipboardItem:o}=n,i=[new o({"text/html":new t([e[r(151)]],{type:r(132)}),"text/plain":new t([e[r(190)]||""],{type:r(173)})})];navigator[r(130)][r(168)](i)}else{const t=o[r(189)](r(122));t[r(127)][r(167)]=r(165),t[r(127)][r(172)]=r(163),t[r(151)]=r(148)+e[r(151)]+r(164),o[r(137)][r(120)](t);const i=o[r(112)]();i[r(170)](t[r(191)]),i[r(158)](t[r(113)]);const s=n[r(159)]();s[r(150)](),s[r(139)](i),o[r(125)](r(187)),t[r(135)]()}}}class ve extends o.View{constructor(e,t=""){const r=fe;super(e),this[r(109)]=this[r(129)](),this[r(138)]({tag:r(122),attributes:{class:["ck",r(181),t,r(178),r(114)]}})}[fe(131)](e){const t=fe;this[t(116)][t(151)]=e}[fe(179)](){const e=fe;this[e(116)][e(120)](this[e(109)][e(116)])}[fe(129)](){const e=fe,t=new o.View,r=this[e(146)],n=new o.SpinnerView;return n[e(111)]=!0,t[e(138)]({tag:e(122),attributes:{class:["ck",e(177)]},children:[n,{text:Q(r,e(115))}]}),t[e(186)](),t}}function we(e,t){const r=_e();return(we=function(e,t){return r[e-=133]})(e,t)}!function(e){const t=we,r=e();for(;;)try{if(120523===parseInt(t(133))/1*(parseInt(t(141))/2)+-parseInt(t(143))/3+-parseInt(t(137))/4+parseInt(t(135))/5+parseInt(t(140))/6+-parseInt(t(149))/7*(parseInt(t(139))/8)+parseInt(t(134))/9*(-parseInt(t(145))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(_e);class ye extends o.View{constructor(e,t=""){const r=we;super(e);const n=new o.IconView,i=this[r(144)];this[r(136)](r(146),t),n[r(138)]='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.9 4.385a1.2 1.2 0 0 0-.44.44h.002l-5.284 9.15a1.2 1.2 0 0 0 1.04 1.8h10.564a1.2 1.2 0 0 0 1.04-1.8l-5.282-9.15a1.2 1.2 0 0 0-1.64-.44Zm.05 8.363a.301.301 0 0 1 .115-.023h.9a.301.301 0 0 1 .3.3v.9a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3v-.9a.3.3 0 0 1 .185-.277Zm-.185-4.723a.3.3 0 0 1 .3-.3h.9a.3.3 0 0 1 .3.3v3.4a.3.3 0 0 1-.3.3h-.9a.301.301 0 0 1-.3-.3v-3.4Z"/></svg>\n',this[r(142)]({tag:r(148),attributes:{class:["ck",r(147)]},children:[n,{text:i.to(r(146))}]})}}function _e(){const e=["bindTemplate","411490phAzZW","text","ck-ai-form__error","div","196wNlgTc","1GheZRb","9otfCoR","806935sWdcUH","set","255388JghwPH","content","43592LHFdZt","1126158WQJXav","225016HgWIpd","setTemplate","250491QOBRGL"];return(_e=function(){return e})()}function Ae(){const e=["focusFirst","element","8032668efAitj","2744424MevrYE","_createShowHistoryButton","12959230luuzYm","width","6umhFIE","isVisible","focusableChildren","requestAnimationFrame","2612223ulcNfz","699498bQwEMb","focusLast","target","update","excludeScrollbarsAndBorders","isEnabled","uiLanguageDirection","_createSubmitButton","isOn","queryView","279022FgqpEM","History","history","minRows","submit","keystrokes","fire","add","style","showHistoryButtonView","focus","locale","rtl","enter","ck-ai-form__toggle-history","focusCycler","1295450dmnufC","execute","ck-ai-form__submit","filteredView","Submit","fieldView","children","11PSyzjY","fieldWrapperChildren","isEmpty","render","bind","window","maxRows","resultsView","3gclINM","left","set","12sXqNsD","right","submitButtonView","value"];return(Ae=function(){return e})()}const Se=xe;function xe(e,t){const r=Ae();return(xe=function(e,t){return r[e-=494]})(e,t)}!function(e){const t=xe,r=e();for(;;)try{if(595422===parseInt(t(542))/1*(parseInt(t(511))/2)+parseInt(t(501))/3*(parseInt(t(545))/4)+parseInt(t(527))/5*(parseInt(t(496))/6)+parseInt(t(551))/7+-parseInt(t(552))/8+-parseInt(t(500))/9+parseInt(t(494))/10*(-parseInt(t(534))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ae);class Ee extends o.AutocompleteView{constructor(e,t){const r=xe;super(e,t),this[r(510)][r(532)][r(514)]=1,this[r(510)][r(532)][r(540)]=3,this[r(547)]=this[r(508)](),this[r(520)]=this[r(553)](),this[r(498)][r(518)](this[r(520)],1),this[r(498)][r(518)](this[r(547)])}[Se(537)](){const e=Se;super[e(537)](),this[e(510)][e(535)][e(518)](this[e(520)]),this[e(533)][e(518)](this[e(547)]),this[e(516)][e(544)](e(524),((t,r)=>{const n=e;t[n(503)]==this[n(510)][n(532)][n(550)]&&(this[n(515)](),r())}))}[Se(508)](){const e=Se,t=new o.ButtonView(this[e(522)]),r=this[e(522)];return t[e(544)]({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.875 4.419a.75.75 0 0 0-1.5 0v7.25H6.818l2.33-1.955a.75.75 0 0 0-.963-1.15l-3.792 3.182a.75.75 0 0 0-.17.945c.046.11.118.208.21.284l3.788 3.18a.75.75 0 1 0 .965-1.149l-2.19-1.837h7.629c.69 0 1.25-.56 1.25-1.25v-7.5Z"/></svg>',label:Q(r,e(531)),isVisible:!0,tooltip:!0,class:e(529)}),t.on(e(528),(()=>{this[e(515)]()})),t[e(538)](e(506)).to(this[e(510)][e(532)],e(536),this,e(506),((e,t)=>!e&&t)),t}[Se(553)](){const r=Se,n=new o.ButtonView(this[r(522)]),i=this[r(541)],s=this[r(522)];n[r(544)]({label:Q(s,r(512)),withText:!1,icon:e.icons[r(513)],tooltip:!0,tooltipPosition:"sw",class:r(525)}),n[r(538)](r(509)).to(i,r(497)),n[r(538)](r(506)).to(this,r(506)),n.on(r(528),(()=>{const e=r;i[e(497)]=!i[e(497)],i[e(497)]?this[e(530)][e(521)]():this[e(521)]()}));const a=()=>{const e=r;t.global[e(539)][e(499)]((()=>{const r=e;if((0,t.isVisible)(this[r(550)])){const e=new t.Rect(this[r(510)][r(532)][r(550)]),o=e[r(495)],i=r(523)===s[r(507)]?r(543):r(546);e[r(505)](),n[r(550)][r(519)][i]=o-e[r(495)]+1+"px"}}))};return this[r(510)][r(532)].on(r(504),a),this.on(r(537),a),n}[Se(515)](){const e=Se,t=this[e(510)][e(532)][e(550)][e(548)];this[e(517)](e(515),t)}[Se(521)](e){const t=Se;-1===e?this[t(526)][t(502)]():this[t(526)][t(549)]()}}const Ie=Pe;function Re(){const e=["1843194jLNqeg","children","Prompt history","locale","filter","105308LDbASR","clearHistoryButton","fire","3183714vyWHvE","2808776nHcZRJ","historyGroupView","delegate","label","items","add","length","12170OTYuly","_createClearHistoryButton","15aJTmfh","8KcBTZB","execute","Clear","set","2920198nSLSTM","clearHistory","1043579oBMIzG","1611pzPWCF"];return(Re=function(){return e})()}function Pe(e,t){const r=Re();return(Pe=function(e,t){return r[e-=231]})(e,t)}!function(e){const t=Pe,r=e();for(;;)try{if(776274===-parseInt(t(250))/1+parseInt(t(248))/2+-parseInt(t(233))/3+parseInt(t(234))/4+parseInt(t(243))/5*(parseInt(t(252))/6)+-parseInt(t(257))/7*(-parseInt(t(244))/8)+-parseInt(t(251))/9*(parseInt(t(241))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Re);class Me extends o.ListView{constructor(e){const t=Pe;super(e),this[t(231)]=this[t(242)](),this[t(235)]=new o.ListItemGroupView,this[t(235)][t(253)][t(239)](this[t(231)],1),this[t(235)][t(237)]=Q(e,t(254)),this[t(235)][t(238)][t(236)](t(245)).to(this),this[t(238)][t(239)](this[t(235)])}[Ie(256)](){const e=Ie;let t=0;for(const r of this[e(238)])t+=r[e(238)][e(240)];return{resultsCount:t,totalItemsCount:t}}[Ie(242)](){const e=Ie,t=this[e(255)],r=new o.ButtonView(this[e(255)]);return r[e(247)]({label:"("+Q(t,e(246))+")",withText:!0}),r.on(e(245),(()=>this[e(232)](e(249)))),r}}const Ce="object"==typeof global&&global&&global.Object===Object&&global;var Te="object"==typeof self&&self&&self.Object===Object&&self;const Oe=(Ce||Te||Function("return this")()).Symbol;const Le=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};const Ne=Array.isArray;var $e=Object.prototype,Be=$e.hasOwnProperty,Fe=$e.toString,Ue=Oe?Oe.toStringTag:void 0;const De=function(e){var t=Be.call(e,Ue),r=e[Ue];try{e[Ue]=void 0;var n=!0}catch(e){}var o=Fe.call(e);return n&&(t?e[Ue]=r:delete e[Ue]),o};var He=Object.prototype.toString;const je=function(e){return He.call(e)};var ze=Oe?Oe.toStringTag:void 0;const qe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ze&&ze in Object(e)?De(e):je(e)};const Ve=function(e){return null!=e&&"object"==typeof e};const Ge=function(e){return"symbol"==typeof e||Ve(e)&&"[object Symbol]"==qe(e)};var We=Oe?Oe.prototype:void 0,Ze=We?We.toString:void 0;const Ke=function e(t){if("string"==typeof t)return t;if(Ne(t))return Le(t,e)+"";if(Ge(t))return Ze?Ze.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};const Je=function(e){return null==e?"":Ke(e)};const Qe=function(e){return function(t){return null==e?void 0:e[t]}};const Ye=Qe({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Xe=/&(?:amp|lt|gt|quot|#39);/g,et=RegExp(Xe.source);const tt=function(e){return(e=Je(e))&&et.test(e)?e.replace(Xe,Ye):e};function rt(e,t){const r=nt();return(rt=function(e,t){return r[e-=270]})(e,t)}function nt(){const e=["18OyuvcG","add","2276570xKmAZi","501948lhckgR","12660olhfsj","69mnWODR","40oaKOYH","execute","locale","prompt","786385QhpvVn","set","438487eRCrfd","190554NCIHlF","children","fire","6128bTfSEA"];return(nt=function(){return e})()}!function(e){const t=rt,r=e();for(;;)try{if(222203===-parseInt(t(279))/1+-parseInt(t(276))/2+parseInt(t(285))/3*(-parseInt(t(284))/4)+parseInt(t(273))/5+-parseInt(t(280))/6*(-parseInt(t(275))/7)+parseInt(t(286))/8*(parseInt(t(283))/9)+-parseInt(t(282))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(nt);class ot extends o.ListItemView{constructor(e){const t=rt;super();const r=new o.ButtonLabelView,n=new o.ButtonView(this[t(271)],r);this[t(277)][t(281)](n),n[t(274)]({label:e[t(272)],withText:!0}),n.on(t(270),(()=>{const r=t;this[r(278)](r(270),{value:tt(e[r(272)])})}))}}const it=at;!function(e){const t=at,r=e();for(;;)try{if(279944===-parseInt(t(124))/1+-parseInt(t(141))/2+parseInt(t(135))/3+parseInt(t(130))/4+parseInt(t(128))/5+parseInt(t(138))/6*(parseInt(t(131))/7)+-parseInt(t(125))/8*(-parseInt(t(136))/9))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(ut);const st=it(122);function at(e,t){const r=ut();return(at=function(e,t){return r[e-=120]})(e,t)}class ct extends t.Collection{constructor(){const e=it;super(),this[e(129)](),this.on(e(140),((t,r)=>{const n=e,o=dt(r[n(134)]);for(const e of this)if(e!=r&&dt(e[n(134)])===o){this[n(142)](e);break}this[n(121)]>20&&this[n(142)](this[n(126)]),this[n(120)]()})),this.on(e(142),(()=>{this[e(120)]()}))}[it(129)](){const e=it,t=sessionStorage[e(127)](st)||"[]";this[e(137)](JSON[e(133)](t))}[it(120)](){const e=it;sessionStorage[e(143)](st,JSON[e(123)](this[e(139)]((e=>e))))}}function ut(){const e=["777594MgsqFT","12375ByThQC","addMany","233250nwxnFH","map","add","654316PRtyVg","remove","setItem","toLowerCase","_saveToSessionStorage","length","CKEditor/AIFormView/PromptHistory","stringify","543084JfqUhe","1864iQHzCB","last","getItem","749690TvdpYS","_loadFromSessionStorage","1060700FjffAJ","28cYkANf","trim","parse","prompt"];return(ut=function(){return e})()}function dt(e){const t=it;return e[t(144)]()[t(132)]()}const lt=Qe({"&":"&","<":"<",">":">",'"':""","'":"'"});var gt=/[&<>"']/g,ht=RegExp(gt.source);const pt=function(e){return(e=Je(e))&&ht.test(e)?e.replace(gt,lt):e},ft=mt;function mt(e,t){const r=kt();return(mt=function(e,t){return r[e-=488]})(e,t)}function kt(){const e=["delegate","insertButton","handleError","keystrokes","ck-hidden","execute","2786695EjWylL","focusLast","focusCycler","promptView","finishProcessing","clearHistory","Ask AI to improve generated text","trim","clear","focusTracker","render","3010tsmgDg","bindTemplate","insertContentBelow","setTemplate","text","add","_createHistoryView","high","21362xSJfyy","bindTo","startProcessing","_createToolbar","Ask AI to edit or generate","shift + tab","label","2tbeTcB","24037860EluhBR","errorView","fire","bind","copyButtonView","isEnabled","fieldView","ck-ai-form","Ask AI and your prompts will be listed here for you to use later.","replaceButton","stopButton","items","3JzUJHm","focusFirst","toolbar","chain","703540ANdDdz","stopProcessing","tab","_focusables","18DpWASi","value","createCollection","_promptHistory","focus","prompt","search","mainAction","AI_ERROR_FAILED","ck-ai-form-content","isVisible","queryView","replaceContent","isError","isProcessing","_createPromptView","1358644oXHmhZ","submitPrompt","historyGroupView","element","487624rCBRwF","div","tryAgainEvent","listenTo","submit","581120wXUawH","reset","REPLACE","contentArea","locale","Empty history","36zBCjTs","tryAgainButton","set"];return(kt=function(){return e})()}!function(e){const t=mt,r=e();for(;;)try{if(370049===parseInt(t(515))/1*(parseInt(t(561))/2)+-parseInt(t(528))/3*(parseInt(t(532))/4)+parseInt(t(489))/5+parseInt(t(536))/6*(parseInt(t(552))/7)+-parseInt(t(556))/8*(-parseInt(t(567))/9)+-parseInt(t(500))/10*(-parseInt(t(508))/11)+-parseInt(t(516))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(kt);class bt extends o.View{constructor(e,r,n=""){const i=mt;super(e),this[i(569)](i(521),!0),this[i(569)](i(550),!1),this[i(569)](i(541),""),this[i(569)](i(537),""),this[i(569)](i(549),!1),this[i(569)](i(543),ge[i(563)]),this[i(539)]=new ct,this[i(517)]=new ye(e),this[i(564)]=new be(e,n),this[i(564)][i(519)](i(550)).to(this),this[i(564)][i(519)](i(537)).to(this),this[i(530)]=this[i(511)](),this[i(530)][i(519)](i(543)).to(this),this[i(492)]=this[i(551)](),this[i(498)]=new t.FocusTracker,this[i(573)]=new t.KeystrokeHandler,this[i(535)]=this[i(538)]([this[i(564)],this[i(564)][i(520)],this[i(530)],this[i(492)]]),this[i(491)]=new o.FocusCycler({focusables:this[i(535)],focusTracker:this[i(498)],keystrokeHandler:this[i(573)],actions:{focusPrevious:i(513),focusNext:i(534)}}),this[i(491)][i(531)](this[i(492)][i(491)]),this[i(492)][i(547)][i(522)][i(519)](i(537)).to(this,i(541));const s=this[i(501)];this[i(503)]({tag:i(557),attributes:{class:["ck",i(523),r],tabindex:"-1"},children:[{tag:i(557),attributes:{class:["ck",i(545)]},children:[{tag:i(557),attributes:{class:[s.if(i(549),i(574),(e=>!e))]},children:[this[i(517)]]},this[i(564)],this[i(530)],this[i(492)]]}]})}[ft(499)](){const e=ft;super[e(499)](),this[e(498)][e(505)](this[e(564)][e(555)]),this[e(498)][e(505)](this[e(564)][e(520)][e(555)]),this[e(498)][e(505)](this[e(530)][e(555)]),this[e(498)][e(505)](this[e(492)][e(555)]),this[e(573)][e(559)](this[e(555)])}[ft(540)](e=1){const t=ft;-1===e?this[t(491)][t(490)]():this[t(491)][t(529)]()}[ft(562)](){const e=ft;this[e(541)]="",this[e(537)]="",this[e(549)]=!1,this[e(492)][e(562)](),this[e(564)][e(546)]=!1,this[e(530)][e(546)]=!1}[ft(551)](){const e=ft,t=this[e(565)],r=new Ee(t,{queryView:{label:Q(t,e(512)),creator:o.createLabeledTextarea,showIcon:!1,showResetButton:!1},infoView:{text:{noSearchableItems:{primary:Q(t,e(566)),secondary:Q(t,e(524))}}},filteredView:this[e(506)](),queryMinChars:1/0,resetOnBlur:!1});return r[e(519)](e(521)).to(this,e(521),this,e(550),((e,t)=>e&&!t)),this[e(559)](r,e(560),((t,r)=>{const n=e;this[n(541)]=r;const o=pt(r);this[n(518)](n(553),o),r[n(496)]()&&this[n(539)][n(505)]({prompt:o},0)}),{priority:e(507)}),r}[ft(506)](){const e=ft,t=new Me(this[e(565)]);return t[e(554)][e(527)][e(509)](this[e(539)]).as(ot),t.on(e(494),(()=>{const t=e;this[t(539)][t(497)](),this[t(492)][t(542)](""),this[t(492)][t(540)]()})),t}[ft(511)](){const e=ft,t=new he(this[e(565)]);return t[e(525)][e(519)](e(521)).to(this,e(521),this,e(550),this,e(537),((e,t,r)=>e&&!t&&!!r)),t[e(525)][e(570)](e(488)).to(this,e(548)),t[e(571)][e(519)](e(521)).to(this,e(521),this,e(550),this,e(537),((e,t,r)=>e&&!t&&!!r)),t[e(571)][e(570)](e(488)).to(this,e(502)),t[e(568)][e(519)](e(521)).to(this,e(521),this,e(550),((e,t)=>e&&!t)),t[e(568)][e(570)](e(488)).to(this,e(558)),t[e(526)][e(519)](e(521)).to(this,e(550)),t[e(526)][e(570)](e(488)).to(this,e(533)),t}[ft(510)](){const e=ft;this[e(537)]="",this[e(549)]=!1,this[e(550)]=!0,this[e(564)][e(546)]=!0,this[e(530)][e(546)]=!0,this[e(564)][e(540)]()}[ft(493)](){const e=ft,t=this[e(565)];this[e(550)]=!1,this[e(541)]="",this[e(492)][e(562)](),this[e(537)]&&(this[e(492)][e(547)][e(514)]=Q(t,e(495)))}[ft(572)](e){const t=ft,r=this[t(565)];this[t(493)](),this[t(549)]=!0,this[t(517)][t(504)]=e||Q(r,t(544)),this[t(537)]||(this[t(564)][t(546)]=!1)}}const vt='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.346 9.422a.151.151 0 0 1 .284 0l.548 1.484a.152.152 0 0 0 .09.089l1.483.549a.151.151 0 0 1 0 .284l-1.483.548a.151.151 0 0 0-.09.09l-.548 1.483a.152.152 0 0 1-.142.1.151.151 0 0 1-.142-.1l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.15.15 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .089-.09l.549-1.483Z"/><path d="M16.306 1.742a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .089.09l1.483.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09l-.548 1.482a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .09-.089l.548-1.483Z"/><path d="M7.665 1.742a.151.151 0 0 1 .284 0l.549 1.483a.151.151 0 0 0 .09.09l1.482.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.151.151 0 0 0-.09.09L7.95 6.267a.151.151 0 0 1-.284 0l-.549-1.483a.151.151 0 0 0-.089-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.483-.549a.151.151 0 0 0 .09-.089l.548-1.483-.001.001Z"/><path d="M14.72 7.946a.848.848 0 0 0 .25-.591.824.824 0 0 0-.241-.588l-1.943-1.938a.812.812 0 0 0-.588-.241.838.838 0 0 0-.591.25l-1.545 1.539 3.115 3.115 1.542-1.546h.001Z"/><path clip-rule="evenodd" d="M1.19 15.636a.96.96 0 0 1 .281-.679l7.835-7.834 3.121 3.12-7.834 7.835a.959.959 0 0 1-1.358 0l-1.764-1.764a.96.96 0 0 1-.28-.678Zm9.22-5.391-1.121-1.12-6.479 6.478 1.121 1.121 6.479-6.479Z"/></svg>';var wt=r(379),yt={attributes:{"data-cke":!0}};yt.setAttributes=g(),yt.insert=d().bind(null,"head"),yt.domAPI=c(),yt.insertStyleElement=p();s()(wt.A,yt);wt.A&&wt.A.locals&&wt.A.locals;var _t=r(181),At={attributes:{"data-cke":!0}};At.setAttributes=g(),At.insert=d().bind(null,"head"),At.domAPI=c(),At.insertStyleElement=p();s()(_t.A,At);_t.A&&_t.A.locals&&_t.A.locals;var St=r(676),xt={attributes:{"data-cke":!0}};xt.setAttributes=g(),xt.insert=d().bind(null,"head"),xt.domAPI=c(),xt.insertStyleElement=p();s()(St.A,xt);St.A&&St.A.locals&&St.A.locals;var Et=r(331);const It=Rt;function Rt(e,t){const r=Pt();return(Rt=function(e,t){return r[e-=342]})(e,t)}function Pt(){const e=["_initView","aiLicenseKeyUsageLimit","reset","INSERT","aiLicenseKeyNotAllowed","items","4866561ofqnFF","command:","change:isError","listenTo","splice","1275388CfAHBq","<p>","currentContext","requiresContent","_aiAdapter","getSelectedBlocks","includes","groupLabel","_aiAssistantController","change:isProcessing","AIAssistantUI","announce","custom","usageLimit","10639854cfpndY","aiLicenseKeyValid","55FfpgtZ","queryView","menuitemcheckbox","insertContentBelow","_showLicenseError","aiLicenseKeyExpired","ai.aiAssistant.disabledElements","filter","model","isCollapsed","getSelectedElement","REPLACE","ai.aiAssistant.contentAreaCssClass","15GfbVnG","contentArea","expired","Error during AI content generation: %0","add","menuPanelClass","editing","getLimitElement","aiLicenseKeyTrialLimit","aiLicenseKeyDomainLimit","_commandDefinitions","Generated content: %0","wasMoved","tableOfContents","3938890qyPuYb","requires","body","EDITOR_TOP_SIDE","showUI","label","set","define","AI Assistant","copy","editor","aiCommands","ck-ai-commands-dropdown ","isPremiumPlugin","showAIAssistant","get","enabledCommandsIds","from","source","buttonView","values","aiAssistant","fieldView","replaceContent"," ck-ai-assistant-ui_theme","hideFakeVisualSelection","locale","render","updateView","change","replace","robotPencil","config","text","panelView","isFlat","aiLicenseKeyEvaluationLimit","promptView","groupId","forEach","_initAriaAiStatusChangeAnnouncements","map","children","polite","getRanges","selection","push","showFakeVisualSelection","fire","delegate","AI Commands","trialLimit","text/html","prompt","_licenseKeyCheckInterval","10473957uJQuGZ","updatePosition","_forceMarkersCopy","DataTransfer","invalid","isEnabled","schema","</p>","textAdapter","AI is writing","_dialog","rawHtml","show","addMany","bind","destroy","ck-ai-assistant-button ","1640914SEhcuk","domainLimit","_populateMenuBarMenu","menuView","comment","insertContent","componentFactory","execute","aiLicenseKeyInvalid","hide","change:enabledCommandsIds","8myvEJQ","_createAIAssistantUIButton","featureNotAllowed","hideUI","AIAssistant","694WjcfWy","_uiCssClasses","change:value","buttons","_onExecute","order","pluginName","focus","media","setSelection","length","once","isOn","ck-ai-assistant-ui","view","trim","plugins","_getMenuBarGroupButtons","errorView","commands","licenseKey","aiLicenseKeyDevelopmentLimit","evaluationLimit","document","4854McNPkN","_getResolvedCommandsDefinitions","_formView","init","menuBar:aiAssistant","ai.useTheme","ai.aiAssistant.commands","sort","update","developmentLimit","isOfficialPlugin","ai-commands-config-order-collision","getData","menuBar:aiCommands"];return(Pt=function(){return e})()}!function(e){const t=Rt,r=e();for(;;)try{if(973405===parseInt(t(458))/1+parseInt(t(474))/2*(parseInt(t(498))/3)+parseInt(t(343))/4*(-parseInt(t(372))/5)+-parseInt(t(357))/6+-parseInt(t(518))/7*(-parseInt(t(469))/8)+-parseInt(t(441))/9+parseInt(t(386))/10*(parseInt(t(359))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Pt);const Mt=globalThis[It(444)];class Ct extends e.Plugin{static get[It(480)](){return It(353)}static get[It(508)](){return!0}static get[It(399)](){return!0}static get[It(387)](){return[Et.ClipboardMarkersUtils,V,W,o.Dialog]}constructor(e){const t=It;super(e),this[t(475)]="",e[t(418)][t(393)](t(365),[t(482),t(452),t(385)]),e[t(418)][t(393)](t(371),""),e[t(418)][t(393)](t(503),!0),this[t(475)]=t(487)+(e[t(418)][t(401)](t(503))?t(410):"")}[It(501)](){const e=It,{editor:t}=this;this[e(347)]=t[e(490)][e(401)](W),this[e(451)]=t[e(490)][e(401)](o.Dialog),this[e(500)]=null,this[e(382)]=this[e(499)]();const r=new te(t,Array[e(403)](this[e(382)][e(406)]()));t[e(493)][e(376)](e(400),r),t.ui[e(464)][e(376)](e(397),(n=>{const i=e,s=(0,o.createDropdown)(n);return s[i(392)]({class:i(398)+this[i(475)]}),s[i(405)][i(392)]({label:Q(n,i(436)),icon:vt,tooltip:!0}),s.on(i(465),(e=>this[i(478)](e[i(404)].id))),(0,o.addMenuToDropdown)(s,t.ui[i(488)][i(388)],function(e){const t=i,r=D(e[t(418)][t(401)](t(504)),e[t(412)]),n=Ot(e,r)[t(366)]((e=>e[t(493)][t(484)]));return 1===n[t(484)]?Ot(e,n[0][t(493)])[t(427)]((e=>({id:e.id,label:e[t(391)]}))):n[t(427)]((r=>{const n=t,{groupId:o,groupLabel:i,commands:s}=r;return{id:o,menu:i||o,children:Ot(e,s)[n(427)]((e=>({id:e.id,label:e[n(391)]})))}}))}(t),{ariaLabel:Q(n,i(436))}),s[i(461)][i(377)]=i(398)+this[i(475)],r.on(i(468),a),s[i(461)][i(485)](i(413),a),s;function a(){const e=i;s[e(446)]=r[e(402)][e(484)]>0;for(const t of s[e(461)][e(477)])t[e(446)]=r[e(402)][e(349)](t.id)}})),t.ui[e(464)][e(376)](e(511),(n=>{const i=e,s=new o.MenuBarMenuView(n);s[i(405)][i(392)]({label:Q(n,i(436)),icon:vt}),s[i(455)](i(446)).to(r,i(402),(e=>e[i(484)]>0));const a=D(t[i(418)][i(401)](i(504)),n);return this[i(460)](r,s,a,(e=>this[i(478)](e))),s})),t.ui[e(464)][e(376)](e(407),(()=>{const t=e,r=this[t(470)](o.ButtonView);return r[t(392)]({tooltip:!0,class:t(457)+this[t(475)]}),r})),t.ui[e(464)][e(376)](e(502),(()=>{const t=e,r=this[t(470)](o.MenuBarMenuListItemButtonView);return r[t(392)]({role:t(361)}),r})),this[e(494)]=this[e(396)][e(418)][e(401)](e(494));const n=this[e(396)];this[e(440)]=setInterval((()=>{const t=e;let r;for(const e in n){const o=e,i=n[o];if(t(358)==i||t(466)==i||t(364)==i||t(381)==i||t(516)==i||t(422)==i||t(380)==i||t(495)==i||t(513)==i){delete n[o],r=i,clearInterval(this[t(440)]),this[t(440)]=void 0;break}}t(466)==r&&n[t(363)](t(445)),t(364)==r&&n[t(363)](t(374)),t(381)==r&&n[t(363)](t(459)),t(516)==r&&n[t(363)](t(471),t(473)),t(422)==r&&n[t(363)](t(496)),t(380)==r&&n[t(363)](t(437)),t(495)==r&&n[t(363)](t(507)),t(513)==r&&n[t(363)](t(356))}),1e3)}[It(456)](){const e=It;super[e(456)](),this[e(440)]&&clearInterval(this[e(440)])}[It(390)](e="",t="",r=It(355)){const n=It,i=this[n(396)],s=i[n(378)][n(488)],a=i[n(490)][n(401)](V),c=i[n(490)][n(401)](Et.ClipboardMarkersUtils);a[n(433)]();const u=new Mt,d=new ClipboardEvent(n(395),{clipboardData:u}),l=new ne.DataTransfer(u),g=new ne.DomEventData(s,d,{dataTransfer:l});c[n(443)](n(462),(()=>{const e=n;s[e(497)][e(434)](e(395),g)})),this[n(500)]||(this[n(512)](),this[n(351)]=new ce(i,this[n(347)][n(449)],this[n(500)]));let h=l[n(510)](n(438));const p=i[n(367)][n(497)][n(431)],f=Array[n(403)](p[n(430)]());1===f[n(484)]&&f[0][n(421)]&&!p[n(369)]()&&""!==h[n(416)](/ /g,"")[n(489)]()&&(h=n(344)+h+n(448)),this[n(351)][n(414)]({actionId:r,query:e,htmlContent:h,label:t,mainActionLabel:ge[i[n(367)][n(497)][n(431)][n(368)]?n(515):n(370)]}),n(407)!==this[n(451)].id?this[n(451)][n(453)]({id:n(407),icon:U[n(417)],title:Q(this[n(396)][n(412)],n(394)),content:this[n(500)],position:o.DialogViewPosition[n(389)],onShow:()=>{const e=n;this[e(500)][e(481)]()},onHide:()=>{const e=n;this[e(351)][e(514)](),a[e(411)]()}}):this[n(451)][n(488)][n(384)]||this[n(451)][n(488)][n(442)]()}[It(472)](){const e=It;this[e(451)][e(467)]()}[It(499)](){const e=It,t=new Map,r=D(this[e(396)][e(418)][e(401)](e(504)),this[e(396)][e(412)]);for(const n of r)for(const r of n[e(493)])t[e(392)](r.id,{...r,groupId:n[e(424)],groupLabel:n[e(350)]||n[e(424)]});return t}[It(470)](e){const t=It,r=this[t(396)],n=r[t(493)][t(401)](t(400)),o=new e(r[t(412)]);return o[t(392)]({label:Q(r[t(412)],t(394)),icon:U[t(417)],isToggleable:!0}),o[t(455)](t(446)).to(n),o[t(455)](t(486)).to(this[t(451)],"id",(e=>t(407)===e)),this[t(521)](o,t(465),(()=>{const e=t;o[e(486)]?this[e(472)]():n[e(465)]()})),o}[It(512)](){const e=It,t=this[e(396)][e(490)][e(401)](V);this[e(500)]=new bt(this[e(396)][e(412)],this[e(475)],this[e(396)][e(418)][e(401)](e(371))),this[e(500)].on(e(476),(()=>{const t=e;this[t(451)][t(488)][t(384)]||this[t(451)][t(488)][t(442)]()})),this[e(500)][e(423)][e(360)][e(408)].on(e(506),(()=>{const t=e;this[t(451)][t(488)][t(384)]||this[t(451)][t(488)][t(442)]()})),this[e(521)](this[e(500)],e(409),(()=>{const r=e;t[r(463)](this[r(351)][r(345)]),this[r(472)]()})),this[e(521)](this[e(500)],e(362),(()=>{const r=e;t[r(362)](this[r(351)][r(345)]),this[r(472)]()})),this[e(426)]()}[It(426)](){const e=It,{locale:t,ui:{ariaLiveAnnouncer:r}}=this[e(396)];this[e(500)][e(373)].on(e(352),((n,o,i)=>{const s=e,a=this[s(351)][s(345)];i?r[s(354)](Q(t,s(450))):a&&r[s(354)](Q(t,s(383),a),{politeness:s(429),isUnsafeHTML:!0})})),this[e(500)].on(e(520),((n,o,i)=>{const s=e;if(i){const e=this[s(500)][s(492)][s(419)];r[s(354)](Q(t,s(375),e))}}))}[It(478)](e){const r=It,n=this[r(382)][r(401)](e),o=this[r(396)],i=o[r(367)][r(497)][r(431)],s=o[r(493)][r(401)](r(400)),a=o[r(490)][r(401)](V),c=("_ungrouppedCommands"!==n[r(424)]?n[r(350)]+": ":"")+n[r(391)];if(!1!==n[r(346)]&&i[r(368)]){const e=(0,t.first)(i[r(348)]())||o[r(367)][r(447)][r(379)](i);o[r(367)][r(415)]((t=>{t[r(483)](e,"in")}))}a[r(433)](),s[r(465)](n[r(439)],c,r(519)+e)}[It(460)](e,t,r,n){const i=It,s=this[i(396)],a=s[i(412)],c=new o.MenuBarMenuListView(a),u=Ot(s,r)[i(366)]((e=>e[i(493)][i(484)]));1===u[i(484)]?this[i(491)]({command:e,commands:u[0][i(493)],parentMenuView:t,onExecute:n})[i(425)]((e=>c[i(517)][i(376)](e))):u[i(425)]((({groupId:r,groupLabel:s,commands:u})=>{const d=i,l=new o.MenuBarMenuListItemView(a,t),g=new o.MenuBarMenuView(a),h=new o.MenuBarMenuListView(a),p=this[d(491)]({command:e,commands:u,parentMenuView:g,onExecute:n});g[d(405)][d(392)]({label:s||r}),g[d(435)](d(465)).to(t),h[d(517)][d(454)](p),g[d(420)][d(428)][d(376)](h),l[d(428)][d(376)](g),c[d(517)][d(376)](l)})),t[i(420)][i(428)][i(376)](c)}[It(491)]({command:e,commands:t,parentMenuView:r,onExecute:n}){const i=It,s=this[i(396)],a=s[i(412)];return Ot(s,t)[i(427)]((t=>{const s=i,c=new o.MenuBarMenuListItemView(a,r),u=new o.MenuBarMenuListItemButtonView(a);return u[s(392)]({label:t[s(391)]}),u[s(435)](s(465)).to(r),u.on(s(465),(()=>n(t.id))),u[s(455)](s(446)).to(e,s(402),(e=>e[s(349)](t.id))),c[s(428)][s(376)](u),c}))}}function Tt(e,t){const r=It;return void 0!==e[r(479)]&&void 0===t[r(479)]?1:void 0===e[r(479)]&&void 0!==t[r(479)]?-1:void 0!==e[r(479)]&&void 0!==t[r(479)]?e[r(479)]-t[r(479)]:0}function Ot(e,r){const n=It;r[n(505)](Tt);const o={},i=[];for(const s of r)if(void 0!==s[n(479)]){if(s[n(479)]in o)throw new t.CKEditorError(n(509),e,{conflictingDefinitions:[s,o[s[n(479)]]]});o[s[n(479)]]=s,i[n(342)](s[n(479)],0,s)}else i[n(432)](s);return i}const Lt=Nt;function Nt(e,t){const r=$t();return(Nt=function(e,t){return r[e-=485]})(e,t)}function $t(){const e=["define","editOrReview","push","German","requires","Translate the content to Simplified Chinese language.","concat","Change style","2479722aELTXg","Poetic","ai.aiAssistant.removeCommands","English","isOfficialPlugin","makeLonger","commands","config","Rewrite this content as a legal professional using valid legal terminology.","48230YFyIuP","Summarize","ai.aiAssistant.extraCommandGroups","Make longer","Spanish","translatePortuguese","continue","Improve using casual, informal language to convey a casual conversation with a real person.","simplifyLanguage","Direct","Generate from selection","Summarize this content into one paragraph of text. Include only the key ideas and conclusions. Keep it short. Do not keep original text formatting.","confident","Start with the provided content and write at the end of it continuing this topic. Keep the added part short.","filter","Translate the content to Portuguese language.","changeStyle","groupId","Improve using compelling, optimistic language to convey confidence in the writing.","pluginName","translateEnglish","Translate","get","translate","improveWriting","Simplified Chinese","isPremiumPlugin","summarize","Portuguese","Continue","Friendly","Rewrite this content as a business professional with formal language.","journalism","generate","Improve this content by using descriptive language and inserting more information and more detailed explanations.","Translate the content to German language.","locale","Edit or review","Change tone","forEach","Hindi","find","casual","translateGerman","translateHindi","Fix spelling mistakes, use proper grammar and apply good writing practices. Do not lose the original meaning.","Rewrite this content as a poem using poetic techniques without losing the original meaning.","Improve using direct language, using only the essential information.","direct","poetic","Rewrite this content as a journalist using engaging language to convey the importance of the information.","Casual","Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand.","Simplify language","Professional","2051728quHxdl","Improve using polished, formal, and respectful language to convey professional expertise and competence.","includes","translateFrench","translateChinese","Improve using friendly, comforting language, to convey understanding and empathy.","set","Business","15uRbbhY","394537fxHKAK","Translate the content to Arabic language.","Confident","107842cjhiVq","Improve writing","makeShorter","friendly","changeTone","Translate the content to French language.","legal","business","Journalism","Remove any repetitive, redundant, or non-essential writing in this content without changing the meaning or losing any key information.","Legal","translateSpanish","Translate the content to English language.","276LrcMEi","translateArabic","1082924pFbYAP","French","professional","ai.aiAssistant.commands","AIAssistant","2464452kKzVTC","Arabic","Translate the content to Spanish language.","Translate the content to Hindi language.","Make shorter"];return($t=function(){return e})()}!function(e){const t=Nt,r=e();for(;;)try{if(252631===-parseInt(t(587))/1+-parseInt(t(590))/2*(-parseInt(t(586))/3)+parseInt(t(496))/4+parseInt(t(523))/5*(parseInt(t(494))/6)+-parseInt(t(514))/7+-parseInt(t(578))/8+parseInt(t(501))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}}($t);class Bt extends e.Plugin{static get[Lt(510)](){return[Ct,V]}static get[Lt(542)](){return Lt(500)}static get[Lt(518)](){return!0}static get[Lt(549)](){return!0}constructor(e){const t=Lt;super(e);const r=e[t(521)],n=e[t(559)];r[t(506)](t(499),function(e){const t=Lt;return[{groupId:t(507),groupLabel:Q(e,t(560)),commands:[{id:t(547),label:Q(e,t(591)),prompt:t(568)},{id:t(592),label:Q(e,t(505)),prompt:t(490)},{id:t(519),label:Q(e,t(526)),prompt:t(557)},{id:t(531),label:Q(e,t(576)),prompt:t(575)}]},{groupId:t(556),groupLabel:Q(e,t(533)),commands:[{id:t(550),label:Q(e,t(524)),prompt:t(534)},{id:t(529),label:Q(e,t(552)),prompt:t(536)}]},{groupId:t(485),groupLabel:Q(e,t(561)),commands:[{id:t(498),label:Q(e,t(577)),prompt:t(579)},{id:t(565),label:Q(e,t(574)),prompt:t(530)},{id:t(571),label:Q(e,t(532)),prompt:t(570)},{id:t(535),label:Q(e,t(589)),prompt:t(541)},{id:t(593),label:Q(e,t(553)),prompt:t(583)}]},{groupId:t(539),groupLabel:Q(e,t(513)),commands:[{id:t(488),label:Q(e,t(585)),prompt:t(554)},{id:t(487),label:Q(e,t(491)),prompt:t(522)},{id:t(555),label:Q(e,t(489)),prompt:t(573)},{id:t(572),label:Q(e,t(515)),prompt:t(569)}]},{groupId:t(546),groupLabel:Q(e,t(544)),commands:[{id:t(543),label:Q(e,t(517)),prompt:t(493)},{id:t(492),label:Q(e,t(527)),prompt:t(503)},{id:t(528),label:Q(e,t(551)),prompt:t(538)},{id:t(566),label:Q(e,t(509)),prompt:t(558)},{id:t(581),label:Q(e,t(497)),prompt:t(486)},{id:t(582),label:Q(e,t(548)),prompt:t(511)},{id:t(567),label:Q(e,t(563)),prompt:t(504)},{id:t(495),label:Q(e,t(502)),prompt:t(588)}]}]}(n)),r[t(506)](t(525),[]),r[t(506)](t(516),[]);const o=D(r[t(545)](t(499)),n),i=r[t(545)](t(525)),s=r[t(545)](t(516));i[t(562)]((e=>{const r=t,n=o[r(564)]((t=>t[r(540)]===e[r(540)]));n?n[r(520)]=n[r(520)][r(512)](e[r(520)]):o[r(508)](e)})),o[t(562)]((e=>{const r=t;e[r(520)]=e[r(520)][r(537)]((e=>!s[r(580)](e.id)))})),r[t(584)](t(499),o)}}const Ft=Dt;function Ut(){const e=["abortController","_prepareRequestHeaders","plugins","aborted","assign","8345934BhHazp","reject","makeRequest","55kWjqQB","object","39ddbNco","108728MaAQaD","7445NlitWk","textAdapter","init","aitextadapter-send-request-failed","4304pGPmLU","8620704WStMSB","error","signal","locale","4220690cBecRE","771862bHHojS","resolve","abort","sendRequest","requires","application/json","_prepareRequestParameters","get","catch","AbortError","72hsngky","AI_ERROR_GET_HEADERS","1570779iRxJaw","editor","name","AI_ERROR_GET_PARAMETERS"];return(Ut=function(){return e})()}function Dt(e,t){const r=Ut();return(Dt=function(e,t){return r[e-=233]})(e,t)}!function(e){const t=Dt,r=e();for(;;)try{if(889292===parseInt(t(262))/1+parseInt(t(239))/2*(-parseInt(t(238))/3)+parseInt(t(244))/4*(-parseInt(t(240))/5)+parseInt(t(245))/6+-parseInt(t(250))/7*(parseInt(t(260))/8)+-parseInt(t(233))/9+-parseInt(t(249))/10*(-parseInt(t(236))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ut);class Ht extends e.Plugin{static get[Ft(254)](){return[W]}constructor(e){const t=Ft;super(e),this[t(266)]=new AbortController}[Ft(242)](){const e=Ft;this[e(263)][e(268)][e(257)](W)[e(241)]=this}[Ft(252)](){const e=Ft;this[e(266)][e(247)][e(269)]||(this[e(266)][e(252)](),this[e(266)]=new AbortController)}async[Ft(235)](e){const r=Ft;return this[r(253)](e)[r(258)]((e=>{const n=r;if(e instanceof J)return Promise[n(234)](e);if(n(259)==e[n(264)])return Promise[n(251)]();throw console[n(246)](e),new t.CKEditorError(n(243),null)}))}async[Ft(267)](e,t){const r=Ft,n=this[r(263)][r(248)],o={"Content-Type":r(255)};if(r(237)==typeof e)Object[r(270)](o,e);else if(e)try{const n=await e(t);Object[r(270)](o,n)}catch(e){return Promise[r(234)](new J(Q(n,r(261))))}return o}async[Ft(256)](e,t){const r=Ft,n=this[r(263)][r(248)];if(r(237)==typeof e)return e;try{return await e(t)}catch(e){return Promise[r(234)](new J(Q(n,r(265))))}}}const jt=zt;function zt(e,t){const r=qt();return(zt=function(e,t){return r[e-=111]})(e,t)}function qt(){const e=["Instruction:\n","get","decode","_readStaticResponse","locale","abortController","_apiUrl","POST","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","ai.openAI.apiUrl","replace","ai.openAI.requestParameters","data: ","7324nwcPHM","length","_readStreamableResponse","166956QbAKlZ","content","_prepareRequestParameters","join","prepareMessages","_requestHeaders","gpt-3.5-turbo","json","body","config","parse","7ZPoeSp","editor","text","_prepareRequestHeaders","map","filter","5207kLCHVJ","9710DrTeoS","697848NZiFIu","resolve","reject","split","user","2057FpPArE","stringify","message","sendRequest","3326280boAGYO","pluginName","OpenAITextAdapter","getReader","includes","Moderation","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","delta","choices","_cleanUpData","AI_ERROR_CONTEXT_LENGTH","system","_requestParameters","7632lOpLNX","read","[DONE]","1645dKzAoO","stream","\nYou must keep the text formatting.\n\nContent:\n","_isBufferIncomplete","define","https://api.openai.com/v1/chat/completions","AI_ERROR_MODERATION","214uxbPNH","1470464mVlmYX","signal","ai.openAI.requestHeaders","context_length_exceeded"];return(qt=function(){return e})()}!function(e){const t=zt,r=e();for(;;)try{if(557485===parseInt(t(150))/1*(parseInt(t(112))/2)+parseInt(t(161))/3+parseInt(t(130))/4*(parseInt(t(177))/5)+-parseInt(t(152))/6*(parseInt(t(144))/7)+parseInt(t(113))/8+parseInt(t(174))/9*(parseInt(t(151))/10)+-parseInt(t(157))/11*(parseInt(t(133))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(qt);class Vt extends Ht{static get[jt(162)](){return jt(163)}constructor(e){const t=jt;super(e),e[t(142)][t(181)](t(126),t(182)),e[t(142)][t(118)](t(128))||e[t(142)][t(181)](t(128),{model:t(139),max_tokens:2e3,temperature:1,top_p:1,stream:!0}),this[t(123)]=e[t(142)][t(118)](t(126)),this[t(138)]=e[t(142)][t(118)](t(115))||{},this[t(173)]=e[t(142)][t(118)](t(128))}async[jt(160)]({query:e,context:t,onData:r,actionId:n}){const o=jt,i=this[o(145)][o(121)],s=await this[o(137)](e,t,n),a=await this[o(147)](this[o(138)],n),c=await this[o(135)](this[o(173)],n),u={messages:s,...c},d={method:o(124),headers:a,body:JSON[o(158)](u),signal:this[o(122)][o(114)]},l=await fetch(this[o(123)],d);if(l.ok)return c[o(178)]?await this[o(132)](l,r):await this[o(120)](l,r),Promise[o(153)]();{const e=await l[o(146)]();return e[o(165)](o(116))?Promise[o(154)](new J(Q(i,o(171)))):e[o(165)](o(166))?Promise[o(154)](new J(Q(i,o(111)))):Promise[o(154)](new Error(e))}}async[jt(137)](e,t,r){const n=jt;let o,i;return t?(o=n(125),i=n(117)+e+n(179)+t):(o=n(167),i=e),[{role:n(172),content:o},{role:n(156),content:i}]}async[jt(132)](e,t){const r=jt,n=e[r(141)][r(164)](),o=new TextDecoder;let i="",s="",a="",c=!1;for(;!c;){const{done:e,value:u}=await n[r(175)](),d=i+o[r(119)](u);let l="";c=e;try{l=this[r(170)](d),i=""}catch(e){i=d;continue}s+=l,!c&&this[r(180)](s)||s&&(a+=s,s="",t(a))}return Promise[r(153)]()}async[jt(120)](e,t){const r=jt;return t((await e[r(140)]())[r(169)][0][r(159)][r(134)]),Promise[r(153)]()}[jt(180)](e){const t=jt,r=e[t(155)]("<")[t(131)]!==e[t(155)](">")[t(131)],n=e[t(131)]<30;return r&&n}[jt(170)](e){const t=jt;return e[t(155)](/\n(?![^{]*\})/g)[t(148)]((e=>e[t(127)](t(129),"")))[t(149)]((e=>e&&e[t(131)]>0&&t(176)!==e))[t(148)]((e=>{const r=t,{choices:n}=JSON[r(143)](e);if(n[0]&&n[0][r(168)]&&n[0][r(168)][r(134)])return n[0][r(168)][r(134)]}))[t(149)]((e=>e))[t(136)]("")}}const Gt=e=>{let t=e.httpHandler;return{setHttpHandler(e){t=e},httpHandler:()=>t,updateHttpClientConfig(e,r){t.updateHttpClientConfig(e,r)},httpHandlerConfigs:()=>t.httpHandlerConfigs()}};var Wt,Zt,Kt,Jt;!function(e){e.HEADER="header",e.QUERY="query"}(Wt||(Wt={})),function(e){e.HEADER="header",e.QUERY="query"}(Zt||(Zt={})),function(e){e.HTTP="http",e.HTTPS="https"}(Kt||(Kt={})),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(Jt||(Jt={}));var Qt;!function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"}(Qt||(Qt={}));const Yt="__smithy_context";var Xt,er;!function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"}(Xt||(Xt={})),function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(er||(er={}));class tr{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new tr({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce(((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}}),{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return tr.clone(this)}}class rr{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const nr={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},or=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!tr.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)})(e),nr)}}),ir={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},sr="X-Amzn-Trace-Id",ar={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},cr=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:n}=r;if(!tr.isInstance(n)||"node"!==e.runtime||n.headers.hasOwnProperty(sr))return t(r);const o=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,s=e=>"string"==typeof e&&e.length>0;return s(o)&&s(i)&&(n.headers[sr]=i),t({...r,request:n})})(e),ar)}});const ur=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),dr=e=>ur.test(e)||e.startsWith("[")&&e.endsWith("]"),lr=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),gr=(e,t=!1)=>{if(!t)return lr.test(e);const r=e.split(".");for(const e of r)if(!gr(e))return!1;return!0},hr={},pr="endpoints";function fr(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${fr(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(fr).join(", ")})`:JSON.stringify(e,null,2)}class mr extends Error{constructor(e){super(e),this.name="EndpointError"}}const kr=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new mr(`Path: '${e}' does not end with ']'`);const o=n.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new mr(`Invalid array index: '${o}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(o)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new mr(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e),br={[Kt.HTTP]:80,[Kt.HTTPS]:443},vr={booleanEquals:(e,t)=>e===t,getAttr:kr,isSet:e=>null!=e,isValidHostLabel:gr,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:o="",query:i={}}=e,s=new URL(`${n}//${t}${r?`:${r}`:""}${o}`);return s.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),s}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:o,pathname:i,protocol:s,search:a}=t;if(a)return null;const c=s.slice(0,-1);if(!Object.values(Kt).includes(c))return null;const u=dr(o);return{scheme:c,authority:`${n}${r.includes(`${n}:${br[c]}`)||"string"==typeof e&&e.includes(`${n}:${br[c]}`)?`:${br[c]}`:""}`,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:u}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},wr=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let o=0;for(;o<e.length;){const t=e.indexOf("{",o);if(-1===t){r.push(e.slice(o));break}r.push(e.slice(o,t));const i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),o=i+2);const s=e.substring(t+1,i);if(s.includes("#")){const[e,t]=s.split("#");r.push(kr(n[e],t))}else r.push(n[s]);o=i+1}return r.join("")},yr=(e,t,r)=>{if("string"==typeof e)return wr(e,r);if(e.fn)return _r(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new mr(`'${t}': ${String(e)} is not a string, function or reference.`)},_r=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:yr(e,"arg",r))),o=e.split(".");return o[0]in hr&&null!=o[1]?hr[o[0]][o[1]](...n):vr[e](...n)},Ar=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new mr(`'${e}' is already defined in Reference Record.`);const n=_r(t,r);return r.logger?.debug?.(`${pr} evaluateCondition: ${fr(t)} = ${fr(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},Sr=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:o}=Ar(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};o&&(r[o.name]=o.value,t.logger?.debug?.(`${pr} assign: ${o.name} := ${fr(o.value)}`))}return{result:!0,referenceRecord:r}},xr=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=yr(e,"Header value entry",t);if("string"!=typeof n)throw new mr(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),Er=(e,t)=>{if(Array.isArray(e))return e.map((e=>Er(e,t)));switch(typeof e){case"string":return wr(e,t);case"object":if(null===e)throw new mr(`Unexpected endpoint property: ${e}`);return Ir(e,t);case"boolean":return e;default:throw new mr("Unexpected endpoint property type: "+typeof e)}},Ir=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:Er(n,t)})),{}),Rr=(e,t)=>{const r=yr(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new mr("Endpoint URL must be a string, got "+typeof r)},Pr=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:o,referenceRecord:i}=Sr(r,t);if(!o)return;const s={...t,referenceRecord:{...t.referenceRecord,...i}},{url:a,properties:c,headers:u}=n;return t.logger?.debug?.(`${pr} Resolving endpoint from template: ${fr(n)}`),{...null!=u&&{headers:xr(u,s)},...null!=c&&{properties:Ir(c,s)},url:Rr(a,s)}},Mr=(e,t)=>{const{conditions:r,error:n}=e,{result:o,referenceRecord:i}=Sr(r,t);if(o)throw new mr(yr(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},Cr=(e,t)=>{const{conditions:r,rules:n}=e,{result:o,referenceRecord:i}=Sr(r,t);if(o)return Tr(n,{...t,referenceRecord:{...t.referenceRecord,...i}})},Tr=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=Pr(r,t);if(e)return e}else if("error"===r.type)Mr(r,t);else{if("tree"!==r.type)throw new mr(`Unknown endpoint rule: ${r}`);{const e=Cr(r,t);if(e)return e}}throw new mr("Rules evaluation failed")},Or=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!Or(t))return!1;return!0}return!!gr(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!dr(e)))};let Lr=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"ca-west-1":{"description":"Canada West (Calgary)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{"eu-isoe-west-1":{"description":"EU ISOE West"}}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}'),Nr="";const $r={isVirtualHostableS3Bucket:Or,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,o,i,s,...a]=t;return"arn"!==r||""===n||""===o||""===a[0]?null:{partition:n,service:o,region:i,accountId:s,resourceId:a[0].includes("/")?a[0].split("/"):a}},partition:e=>{const{partitions:t}=Lr;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,o]of Object.entries(t))if(r===e)return{...n,...o}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}}};hr.aws=$r;const Br="user-agent",Fr="x-amz-user-agent",Ur=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,Dr=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,Hr=e=>(t,r)=>async n=>{const{request:o}=n;if(!tr.isInstance(o))return t(n);const{headers:i}=o,s=r?.userAgent?.map(jr)||[],a=(await e.defaultUserAgentProvider()).map(jr),c=e?.customUserAgent?.map(jr)||[],u=(Nr?[Nr]:[]).concat([...a,...s,...c]).join(" "),d=[...a.filter((e=>e.startsWith("aws-sdk-"))),...c].join(" ");return"browser"!==e.runtime?(d&&(i[Fr]=i[Fr]?`${i[Br]} ${d}`:d),i[Br]=u):i[Fr]=u,t({...n,request:o})},jr=e=>{const t=e[0].split("/").map((e=>e.replace(Ur,"-"))).join("/"),r=e[1]?.replace(Dr,"-"),n=t.indexOf("/"),o=t.substring(0,n);let i=t.substring(n+1);return"api"===o&&(i=i.toLowerCase()),[o,i,r].filter((e=>e&&e.length>0)).reduce(((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},zr={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var qr;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(qr||(qr={}));const Vr=e=>e[Yt]||(e[Yt]={}),Gr=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},Wr=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),Zr=e=>Wr(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const Kr=(e,t)=>(r,n)=>async o=>{const i=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,n,o.input)),s=function(e){const t=new Map;for(const r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),a=Vr(n),c=[];for(const r of i){const o=s.get(r.schemeId);if(!o){c.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}const i=o.identityProvider(await t.identityProviderConfigProvider(e));if(!i){c.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:u={},signingProperties:d={}}=r.propertiesExtractor?.(e,n)||{};r.identityProperties=Object.assign(r.identityProperties||{},u),r.signingProperties=Object.assign(r.signingProperties||{},d),a.selectedHttpAuthScheme={httpAuthOption:r,identity:await i(r.identityProperties),signer:o.signer};break}if(!a.selectedHttpAuthScheme)throw new Error(c.join("\n"));return r(o)},Jr={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Qr={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Yr={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Xr(e,t,r){return{applyToStack:n=>{n.add(((e,t)=>r=>async n=>{const{response:o}=await r(n);try{return{response:o,output:await t(o,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:o}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t,void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText)}throw e}})(e,r),Qr),n.add(((e,t)=>(r,n)=>async o=>{const i=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const s=await t(o.input,{...e,endpoint:i});return r({...o,request:s})})(e,t),Yr)}}}const en=e=>e=>{throw e},tn=(e,t)=>{},rn={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},nn=e=>({applyToStack:e=>{e.addRelativeTo(((e,t)=>async r=>{if(!tr.isInstance(r.request))return e(r);const n=Vr(t).selectedHttpAuthScheme;if(!n)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:o={}},identity:i,signer:s}=n,a=await e({...r,request:await s.sign(r.request,i,o)}).catch((s.errorHandler||en)(o));return(s.successHandler||tn)(a.response,o),a}),rn)}}),on=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},sn={},an=new Array(64);for(let e=0,t="A".charCodeAt(0),r="Z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t);sn[r]=e,an[e]=r}for(let e=0,t="a".charCodeAt(0),r="z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t),n=e+26;sn[r]=n,an[n]=r}for(let e=0;e<10;e++){sn[e.toString(10)]=e+52;const t=e.toString(10),r=e+52;sn[t]=r,an[r]=t}sn["+"]=62,an[62]="+",sn["/"]=63,an[63]="/";const cn=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,o=0;for(let n=t,i=t+3;n<=i;n++)if("="!==e[n]){if(!(e[n]in sn))throw new TypeError(`Invalid character ${e[n]} in base64 string.`);r|=sn[e[n]]<<6*(i-n),o+=6}else r>>=6;const i=t/4*3;r>>=o%8;const s=Math.floor(o/8);for(let e=0;e<s;e++){const t=8*(s-e-1);n.setUint8(i+e,(r&255<<t)>>t)}}return new Uint8Array(r)},un=e=>(new TextEncoder).encode(e);function dn(e){let t;t="string"==typeof e?un(e):e;const r="object"==typeof t&&"number"==typeof t.length,n="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let e=0;e<t.length;e+=3){let r=0,n=0;for(let o=e,i=Math.min(e+3,t.length);o<i;o++)r|=t[o]<<8*(i-o-1),n+=8;const i=Math.ceil(n/6);r<<=6*i-n;for(let e=1;e<=i;e++){const t=6*(i-e);o+=an[(r&63<<t)>>t]}o+="==".slice(0,4-i)}return o}const ln=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};class gn extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return function(e,t){return"base64"===t?gn.mutate(cn(e)):gn.mutate(un(e))}(e,t);throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,gn.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?dn(e):ln(e)}(this,e)}}const hn={},pn={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),hn[e]=t,pn[t]=e}function fn(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in pn))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=pn[n]}return t}function mn(e){let t="";for(let r=0;r<e.byteLength;r++)t+=hn[e[r]];return t}"function"==typeof ReadableStream&&ReadableStream;const kn=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return gn.mutate(e);if(!e)return gn.mutate(new Uint8Array);const r=t.streamCollector(e);return gn.mutate(await r)};function bn(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function vn(e,t){return new wn(e,t)}class wn{constructor(e,t){this.input=e,this.context=t,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:e,protocol:t="https",port:r,path:n}=await this.context.endpoint();this.path=n;for(const e of this.resolvePathStack)e(this.path);return new tr({protocol:t,hostname:this.hostname||e,port:r,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e})),this}p(e,t,r,n){return this.resolvePathStack.push((o=>{this.path=((e,t,r,n,o,i)=>{if(null==t||void 0===t[r])throw new Error("No value provided for input HTTP label: "+r+".");{const t=n();if(t.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");e=e.replace(o,i?t.split("/").map((e=>bn(e))).join("/"):bn(t))}return e})(o,this.input,e,t,r,n)})),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}class yn{constructor(e){this.authSchemes=new Map;for(const[t,r]of Object.entries(e))void 0!==r&&this.authSchemes.set(t,r)}getIdentityProvider(e){return this.authSchemes.get(e)}}const _n=(An=3e5,e=>Sn(e)&&e.expiration.getTime()-Date.now()<An);var An;const Sn=e=>void 0!==e.expiration,xn="content-length";const En={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},In=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const n=t.request;if(tr.isInstance(n)){const{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(xn))try{const t=r(e);n.headers={...n.headers,[xn]:String(t)}}catch(e){}}return e({...t,request:n})}),En)}}),Rn=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Pn=/(\d+\.){3}\d+/,Mn=/\.\./,Cn=e=>Rn.test(e)&&!Pn.test(e)&&!Mn.test(e),Tn=e=>{const[t,r,n,,,o]=e.split(":"),i="arn"===t&&e.split(":").length>=6,s=Boolean(i&&r&&n&&o);if(i&&!s)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return s},On=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:o}=e;return`${t}//${r}${n?":"+n:""}${o}`}}return e}:n},Ln=async e=>{};const Nn=e=>{if("string"==typeof e)return Nn(new URL(e));const{hostname:t,pathname:r,port:n,protocol:o,search:i}=e;let s;return i&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(i)),{hostname:t,port:n?parseInt(n):void 0,protocol:o,path:r,query:s}},$n=e=>"object"==typeof e?"url"in e?Nn(e.url):e:Nn(e),Bn=async(e,t,r)=>{const n={},o=t?.getEndpointParameterInstructions?.()||{};for(const[t,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[t]=i.value;break;case"contextParams":n[t]=e[i.name];break;case"clientContextParams":case"builtInParams":n[t]=await On(i.name,t,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(o).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Tn(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Cn(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n},Fn=({config:e,instructions:t})=>(r,n)=>async o=>{e.endpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(n,"ENDPOINT_OVERRIDE","N");const i=await(async(e,t,r,n)=>{if(!r.endpoint){let e;e=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await Ln(r.serviceId),e&&(r.endpoint=()=>Promise.resolve($n(e)))}const o=await Bn(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(o,n)})(o.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;const s=n.authSchemes?.[0];if(s){n.signing_region=s.signingRegion,n.signing_service=s.signingName;const e=Vr(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...o})},Un={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Yr.name},Dn=(e,t)=>({applyToStack:r=>{r.addRelativeTo(Fn({config:e,instructions:t}),Un)}});var Hn;!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(Hn||(Hn={}));const jn=Hn.STANDARD,zn=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],qn=["TimeoutError","RequestTimeout","RequestTimeoutException"],Vn=[500,502,503,504],Gn=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Wn=e=>429===e.$metadata?.httpStatusCode||zn.includes(e.name)||1==e.$retryable?.throttling,Zn=(e,t=0)=>(e=>e.$metadata?.clockSkewCorrected)(e)||qn.includes(e.name)||Gn.includes(e?.code||"")||Vn.includes(e.$metadata?.httpStatusCode||0)||void 0!==e.cause&&t<=10&&Zn(e.cause,t+1);class Kn{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>Kn.setTimeoutFn(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),Wn(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}Kn.setTimeoutFn=setTimeout;const Jn=100,Qn=2e4,Yn="amz-sdk-invocation-id",Xn="amz-sdk-request",eo=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(Qn,e),getRetryCost:()=>r});class to{constructor(e){this.maxAttempts=e,this.mode=Hn.STANDARD,this.capacity=500,this.retryBackoffStrategy=(()=>{let e=Jn;return{computeNextBackoffDelay:t=>Math.floor(Math.min(Qn,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return eo({retryDelay:Jn,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:Jn);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(r);return this.capacity-=i,eo({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class ro{constructor(e,t){this.maxAttemptsProvider=e,this.mode=Hn.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new Kn,this.standardRetryStrategy=new to(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const no={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let oo;const io=new Uint8Array(16);function so(){if(!oo&&(oo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!oo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oo(io)}const ao=[];for(let e=0;e<256;++e)ao.push((e+256).toString(16).slice(1));function co(e,t=0){return ao[e[t+0]]+ao[e[t+1]]+ao[e[t+2]]+ao[e[t+3]]+"-"+ao[e[t+4]]+ao[e[t+5]]+"-"+ao[e[t+6]]+ao[e[t+7]]+"-"+ao[e[t+8]]+ao[e[t+9]]+"-"+ao[e[t+10]]+ao[e[t+11]]+ao[e[t+12]]+ao[e[t+13]]+ao[e[t+14]]+ao[e[t+15]]}const uo=function(e,t,r){if(no.randomUUID&&!t&&!e)return no.randomUUID();const n=(e=e||{}).random||(e.rng||so)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return co(n)},lo=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);const go=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},ho=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,po=()=>{let e=[],t=[],r=!1;const n=new Set,o=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r.identifyOnResolve?.(a.identifyOnResolve()),r),i=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t},s=(r=!1)=>{const n=[],o=[],s={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of go(t.name,t.aliases))s[e]=t;n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of go(t.name,t.aliases))s[e]=t;o.push(t)})),o.forEach((e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${ho(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));const a=(c=n,c.sort(((e,t)=>fo[t.step]-fo[e.step]||mo[t.priority||"normal"]-mo[e.priority||"normal"]))).map(i).reduce(((e,t)=>(e.push(...t),e)),[]);var c;return a},a={add:(t,r={})=>{const{name:o,override:i,aliases:s}=r,a={step:"initialize",priority:"normal",middleware:t,...r},c=go(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${ho(o,s)}'`);for(const t of c){const r=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(-1===r)continue;const n=e[r];if(n.step!==a.step||a.priority!==n.priority)throw new Error(`"${ho(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${ho(o,s)}" middleware with ${a.priority} priority in ${a.step} step.`);e.splice(r,1)}}for(const e of c)n.add(e)}e.push(a)},addRelativeTo:(e,r)=>{const{name:o,override:i,aliases:s}=r,a={middleware:e,...r},c=go(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${ho(o,s)}'`);for(const e of c){const r=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(-1===r)continue;const n=t[r];if(n.toMiddleware!==a.toMiddleware||n.relation!==a.relation)throw new Error(`"${ho(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${ho(o,s)}" middleware ${a.relation} "${a.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of c)n.add(e)}t.push(a)},clone:()=>o(po()),use:e=>{e.applyToStack(a)},remove:r=>"string"==typeof r?(r=>{let o=!1;const i=e=>{const t=go(e.name,e.aliases);if(t.includes(r)){o=!0;for(const e of t)n.delete(e);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r):(r=>{let o=!1;const i=e=>{if(e.middleware===r){o=!0;for(const t of go(e.name,e.aliases))n.delete(t);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r),removeByTag:r=>{let o=!1;const i=e=>{const{tags:t,name:i,aliases:s}=e;if(t&&t.includes(r)){const e=go(i,s);for(const t of e)n.delete(t);return o=!0,!1}return!0};return e=e.filter(i),t=t.filter(i),o},concat:e=>{const t=o(po());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:o,identify:()=>s(!0).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return ho(e.name,e.aliases)+" - "+t})),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of s().map((e=>e.middleware)).reverse())e=r(e,t);return r&&console.log(a.identify()),e}};return a},fo={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},mo={high:3,normal:2,low:1};class ko{constructor(e){this.config=e,this.middlewareStack=po()}send(e,t,r){const n="function"!=typeof t?t:void 0,o="function"==typeof t?t:r;let i;if(void 0===n&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?i=t.get(e.constructor):(i=e.resolveMiddleware(this.middlewareStack,this.config,n),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!o)return i(e).then((e=>e.output));i(e).then((e=>o(null,e.output)),(e=>o(e))).catch((()=>{}))}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}class bo{constructor(){this.middlewareStack=po()}static classBuilder(){return new vo}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,smithyContext:c,additionalContext:u,CommandCtor:d}){for(const o of n.bind(this)(d,e,t,r))this.middlewareStack.use(o);const l=e.concat(this.middlewareStack),{logger:g}=t,h={logger:g,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,[Yt]:{commandInstance:this,...c},...u},{requestHandler:p}=t;return l.resolve((e=>p.handle(e.request,r||{})),h)}}class vo{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=e=>e,this._outputFilterSensitiveLog=e=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let t;return t=class extends bo{static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=t??{},e._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}const wo="***SensitiveInformation***",yo=(Math.ceil(2**127*(2-2**-23)),e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}}),_o=e=>Ao(e,32),Ao=(e,t)=>{const r=yo(e);if(void 0!==r&&So(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},So=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},xo=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return Io.warn(Eo(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},Eo=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),Io={warn:console.warn};class Ro extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,Ro.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Po=(e,t={})=>{Object.entries(t).filter((([,e])=>void 0!==e)).forEach((([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)}));const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},Mo=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Co=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},To=e=>{const t=[];for(const r in Jt){const n=Jt[r];void 0!==e[n]&&t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(e){this._checksumAlgorithms.push(e)},checksumAlgorithms(){return this._checksumAlgorithms}}},Oo=e=>{const t={};return e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()})),t},Lo=e=>{let t=e.retryStrategy;return{setRetryStrategy(e){t=e},retryStrategy:()=>t}},No=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},$o=e=>({...To(e),...Lo(e)});function Bo(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})}Bo.from=e=>e&&"object"==typeof e&&(e instanceof Bo||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?Bo(String(e)):Bo(JSON.stringify(e)),Bo.fromObject=Bo.from;class Fo{trace(){}debug(){}info(){}warn(){}error(){}}function Uo(e,t,r){let n,o,i;if(void 0===t&&void 0===r)n={},i=e;else{if(n=e,"function"==typeof t)return o=t,i=r,Ho(n,o,i);i=t}for(const e of Object.keys(i))Array.isArray(i[e])?jo(n,null,i,e):n[e]=i[e];return n}const Do=(e,t)=>{const r={};for(const n in t)jo(r,e,t,n);return r},Ho=(e,t,r)=>Uo(e,Object.entries(r).reduce(((e,[r,n])=>(Array.isArray(n)?e[r]=n:e[r]="function"==typeof n?[t,n()]:[t,n],e)),{})),jo=(e,t,r,n)=>{if(null!==t){let o=r[n];"function"==typeof o&&(o=[,o]);const[i=zo,s=qo,a=n]=o;return void(("function"==typeof i&&i(t[a])||"function"!=typeof i&&i)&&(e[n]=s(t[a])))}let[o,i]=r[n];if("function"==typeof i){let t;const r=void 0===o&&null!=(t=i()),s="function"==typeof o&&!!o(void 0)||"function"!=typeof o&&!!o;r?e[n]=t:s&&(e[n]=i())}else{const t=void 0===o&&null!=i,r="function"==typeof o&&!!o(i)||"function"!=typeof o&&!!o;(t||r)&&(e[n]=i)}},zo=e=>null!=e,qo=e=>e,Vo=e=>e?.body instanceof ReadableStream,Go=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,Wo=e=>{const t={error:e,errorType:Zo(e)},r=Qo(e.$response);return r&&(t.retryAfterHint=r),t},Zo=e=>Wn(e)?"THROTTLING":Zn(e)?"TRANSIENT":(e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!Zn(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",Ko={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Jo=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let o=await e.retryStrategy();const i=await e.maxAttempts();if(!Go(o))return o?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,n);{let e=await o.acquireInitialRetryToken(r.partition_id),s=new Error,a=0,c=0;const{request:u}=n,d=tr.isInstance(u);for(d&&(u.headers[Yn]=uo());;)try{d&&(u.headers[Xn]=`attempt=${a+1}; max=${i}`);const{response:r,output:s}=await t(n);return o.recordSuccess(e),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,{response:r,output:s}}catch(t){const n=Wo(t);if(s=lo(t),d&&Vo(u))throw(r.logger instanceof Fo?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),s;try{e=await o.refreshRetryTokenForRetry(e,n)}catch(e){throw s.$metadata||(s.$metadata={}),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,s}a=e.getRetryCount();const i=e.getRetryDelay();c+=i,await new Promise((e=>setTimeout(e,i)))}}})(e),Ko)}}),Qo=e=>{if(!rr.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)},Yo=e=>encodeURIComponent(e).replace(/[!'()*]/g,Xo),Xo=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,ei=e=>"string"==typeof e?un(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),ti="X-Amz-Date",ri="X-Amz-Signature",ni="X-Amz-Security-Token",oi="authorization",ii=ti.toLowerCase(),si=[oi,ii,"date"],ai=ri.toLowerCase(),ci="x-amz-content-sha256",ui=ni.toLowerCase(),di={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},li=/^proxy-/,gi=/^sec-/,hi="AWS4-HMAC-SHA256",pi="AWS4-HMAC-SHA256-PAYLOAD",fi="aws4_request",mi={},ki=[],bi=(e,t,r)=>`${e}/${t}/${r}/${fi}`,vi=(e,t,r)=>{const n=new e(t);return n.update(ei(r)),n.digest()},wi=({headers:e},t,r)=>{const n={};for(const o of Object.keys(e).sort()){if(null==e[o])continue;const i=o.toLowerCase();(i in di||t?.has(i)||li.test(i)||gi.test(i))&&(!r||r&&!r.has(i))||(n[i]=e[o].trim().replace(/\s+/g," "))}return n},yi=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===ci)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(n=t,"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(n))){const e=new r;return e.update(ei(t)),mn(await e.digest())}var n;return"UNSIGNED-PAYLOAD"};class _i{format(e){const t=[];for(const r of Object.keys(e)){const n=un(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=un(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(xi.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!Si.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const d=new Uint8Array(17);return d[0]=9,d.set(fn(e.value.replace(/\-/g,"")),1),d}}}var Ai;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(Ai||(Ai={}));const Si=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class xi{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&Ei(t),new xi(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&Ei(e),parseInt(mn(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ei(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}const Ii=e=>{e=tr.clone(e);for(const t of Object.keys(e.headers))si.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},Ri=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class Pi{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:o,uriEscapePath:i=!0}){this.headerFormatter=new _i,this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=Gr(r),this.credentialProvider=Gr(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:s,hoistableHeaders:a,signingRegion:c,signingService:u}=t,d=await this.credentialProvider();this.validateResolvedCredentials(d);const l=c??await this.regionProvider(),{longDate:g,shortDate:h}=Mi(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=bi(h,l,u??this.service),f=((e,t={})=>{const{headers:r,query:n={}}=tr.clone(e);for(const e of Object.keys(r)){const o=e.toLowerCase();("x-amz-"===o.slice(0,6)&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))&&(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(Ii(e),{unhoistableHeaders:i,hoistableHeaders:a});d.sessionToken&&(f.query[ni]=d.sessionToken),f.query["X-Amz-Algorithm"]=hi,f.query["X-Amz-Credential"]=`${d.accessKeyId}/${p}`,f.query[ti]=g,f.query["X-Amz-Expires"]=n.toString(10);const m=wi(f,o,s);return f.query["X-Amz-SignedHeaders"]=Ci(m),f.query[ri]=await this.getSignature(g,p,this.getSigningKey(d,l,h,u),this.createCanonicalRequest(f,m,await yi(e,this.sha256))),f}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:o,signingService:i}){const s=o??await this.regionProvider(),{shortDate:a,longDate:c}=Mi(r),u=bi(a,s,i??this.service),d=await yi({headers:{},body:t},this.sha256),l=new this.sha256;l.update(e);const g=mn(await l.digest()),h=[pi,c,u,n,g,d].join("\n");return this.signString(h,{signingDate:r,signingRegion:s,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=r??await this.regionProvider(),{shortDate:s}=Mi(t),a=new this.sha256(await this.getSigningKey(o,i,s,n));return a.update(ei(e)),mn(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=o??await this.regionProvider(),c=Ii(e),{longDate:u,shortDate:d}=Mi(t),l=bi(d,a,i??this.service);c.headers[ii]=u,s.sessionToken&&(c.headers[ui]=s.sessionToken);const g=await yi(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(ci,c.headers)&&this.applyChecksum&&(c.headers[ci]=g);const h=wi(c,n,r),p=await this.getSignature(u,l,this.getSigningKey(s,a,d,i),this.createCanonicalRequest(c,h,g));return c.headers[oi]=`${hi} Credential=${s.accessKeyId}/${l}, SignedHeaders=${Ci(h)}, Signature=${p}`,c}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e)){if(n.toLowerCase()===ai)continue;const o=Yo(n);t.push(o);const i=e[n];"string"==typeof i?r[o]=`${o}=${Yo(i)}`:Array.isArray(i)&&(r[o]=i.slice(0).reduce(((e,t)=>e.concat([`${o}=${Yo(t)}`])),[]).sort().join("&"))}return t.sort().map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update(ei(r));const o=await n.digest();return`${hi}\n${e}\n${t}\n${mn(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return Yo(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const o=await this.createStringToSign(e,t,n),i=new this.sha256(await r);return i.update(ei(o)),mn(await i.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,o)=>{const i=`${r}:${n}:${o}:${mn(await vi(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(i in mi)return mi[i];for(ki.push(i);ki.length>50;)delete mi[ki.shift()];let s=`AWS4${t.secretAccessKey}`;for(const t of[r,n,o,fi])s=await vi(e,s,t);return mi[i]=s})(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const Mi=e=>{const t=(r=e,Ri(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},Ci=e=>Object.keys(e).sort().join(";"),Ti=e=>{let t;e.credentials&&(t=((e,t,r)=>{if(void 0===e)return;const n="function"!=typeof e?async()=>Promise.resolve(e):e;let o,i,s,a=!1;const c=async e=>{i||(i=n(e));try{o=await i,s=!0,a=!1}finally{i=void 0}return o};return void 0===t?async e=>(s&&!e?.forceRefresh||(o=await c(e)),o):async e=>(s&&!e?.forceRefresh||(o=await c(e)),a?o:r(o)?t(o)?(await c(e),o):o:(a=!0,o))})(e.credentials,_n,Sn)),t||(t=e.credentialDefaultProvider?on(e.credentialDefaultProvider(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:o}=e;let i;return i=e.signer?on(e.signer):e.regionInfoProvider?()=>on(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,i])=>{const{signingRegion:s,signingService:a}=n;e.signingRegion=e.signingRegion||s||i,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||Pi)(c)})):async n=>{const i=(n=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await on(e.region)(),properties:{}},n)).signingRegion,s=n.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||s||e.serviceId;const a={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||Pi)(a)},{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:i}},Oi=async(e,t,r)=>({operation:Vr(t).operation,region:await Gr(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const Li=e=>{const t=[];return e.operation,t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"bedrock",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e)),t},Ni={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},$i="3.621.0";var Bi="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e=>(new TextEncoder).encode(e);function Fi(e){return e instanceof Uint8Array?e:"string"==typeof e?Bi(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Ui(e){return"string"==typeof e?0===e.length:0===e.byteLength}var Di={name:"SHA-256"},Hi={name:"HMAC",hash:Di},ji=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);const zi={};function qi(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:zi}var Vi=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!Ui(e)){var t=Fi(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return qi().crypto.subtle.sign(Hi,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):Ui(this.toHash)?Promise.resolve(ji):Promise.resolve().then((function(){return qi().crypto.subtle.digest(Di,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise((function(t,r){qi().crypto.subtle.importKey("raw",Fi(e.secret),Hi,!1,["sign"]).then(t,r)})),this.key.catch((function(){})))},e}();function Gi(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function Wi(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function Zi(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;"function"==typeof SuppressedError&&SuppressedError;var Ki=64,Ji=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Qi=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Yi=Math.pow(2,53)-1,Xi=function(){function e(){this.state=Int32Array.from(Qi),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>Yi)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===Ki&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%Ki>=56){for(var n=this.bufferLength;n<Ki;n++)t.setUint8(n,0);this.hashBuffer(),this.bufferLength=0}for(n=this.bufferLength;n<56;n++)t.setUint8(n,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(32);for(n=0;n<8;n++)o[4*n]=this.state[n]>>>24&255,o[4*n+1]=this.state[n]>>>16&255,o[4*n+2]=this.state[n]>>>8&255,o[4*n+3]=this.state[n]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],c=t[6],u=t[7],d=0;d<Ki;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var l=this.temp[d-2],g=(l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10,h=((l=this.temp[d-15])>>>7|l<<25)^(l>>>18|l<<14)^l>>>3;this.temp[d]=(g+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var p=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&a^~s&c)|0)+(u+(Ji[d]+this.temp[d]|0)|0)|0,f=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&o^n&o)|0;u=c,c=a,a=s,s=i+p|0,i=o,o=n,n=r,r=p+f|0}t[0]+=r,t[1]+=n,t[2]+=o,t[3]+=i,t[4]+=s,t[5]+=a,t[6]+=c,t[7]+=u},e}(),es=function(){function e(e){this.secret=e,this.hash=new Xi,this.reset()}return e.prototype.update=function(e){if(!Ui(e)&&!this.error)try{this.hash.update(Fi(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Gi(this,void 0,void 0,(function(){return Wi(this,(function(e){return[2,this.digestSync()]}))}))},e.prototype.reset=function(){if(this.hash=new Xi,this.secret){this.outer=new Xi;var e=function(e){var t=Fi(e);if(t.byteLength>Ki){var r=new Xi;r.update(t),t=r.digest()}var n=new Uint8Array(Ki);return n.set(t),n}(this.secret),t=new Uint8Array(Ki);t.set(e);for(var r=0;r<Ki;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(r=0;r<e.byteLength;r++)e[r]=0}},e}();var ts=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function rs(e){return e&&ts.every((function(t){return"function"==typeof e[t]}))}var ns=function(){function e(e){!function(e){return!(!function(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}(e)||"object"!=typeof e.crypto.subtle)&&rs(e.crypto.subtle)}(qi())?this.hash=new es(e):this.hash=new Vi(e)}return e.prototype.update=function(e,t){this.hash.update(Fi(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),os=r(369),is=r.n(os);const ss=({serviceId:e,clientVersion:t})=>async()=>{const r="undefined"!=typeof window&&window?.navigator?.userAgent?is().parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",t],["ua","2.0"],[`os/${r?.os?.name||"other"}`,r?.os?.version],["lang/js"],["md/browser",`${r?.browser?.name??"unknown"}_${r?.browser?.version??"unknown"}`]];return e&&n.push([`api/${e}`,t]),n};!function(){function e(){this.crc32=new cs}e.prototype.update=function(e){Ui(e)||this.crc32.update(Fi(e))},e.prototype.digest=function(){return Gi(this,void 0,void 0,(function(){return Wi(this,(function(e){return[2,(t=this.crc32.digest(),new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))];var t}))}))},e.prototype.reset=function(){this.crc32=new cs}}();var as,cs=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=Zi(e),o=n.next();!o.done;o=n.next()){var i=o.value;this.checksum=this.checksum>>>8^us[255&(this.checksum^i)]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),us=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);class ds{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&ls(t),new ds(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&ls(e),parseInt(mn(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function ls(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class gs{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(ds.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!_s.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const d=new Uint8Array(17);return d[0]=9,d.set(fn(e.value.replace(/\-/g,"")),1),d}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[o]={type:hs,value:!0};break;case 1:t[o]={type:hs,value:!1};break;case 2:t[o]={type:ps,value:e.getInt8(r++)};break;case 3:t[o]={type:fs,value:e.getInt16(r,!1)},r+=2;break;case 4:t[o]={type:ms,value:e.getInt32(r,!1)},r+=4;break;case 5:t[o]={type:ks,value:new ds(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[o]={type:bs,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const i=e.getUint16(r,!1);r+=2,t[o]={type:vs,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,i))},r+=i;break;case 8:t[o]={type:ws,value:new Date(new ds(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[o]={type:ys,value:`${mn(s.subarray(0,4))}-${mn(s.subarray(4,6))}-${mn(s.subarray(6,8))}-${mn(s.subarray(8,10))}-${mn(s.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(as||(as={}));const hs="boolean",ps="byte",fs="short",ms="integer",ks="long",bs="binary",vs="string",ws="timestamp",ys="uuid",_s=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class As{constructor(e,t){this.headerMarshaller=new gs(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage:()=>e,isEndOfStream:()=>t}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages:()=>e,isEndOfStream:()=>t}}encode({headers:e,body:t}){const r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,o=new Uint8Array(n),i=new DataView(o.buffer,o.byteOffset,o.byteLength),s=new cs;return i.setUint32(0,n,!1),i.setUint32(4,r.byteLength,!1),i.setUint32(8,s.update(o.subarray(0,8)).digest(),!1),o.set(r,12),o.set(t,r.byteLength+12),i.setUint32(n-4,s.update(o.subarray(8,n-4)).digest(),!1),o}decode(e){const{headers:t,body:r}=function({byteLength:e,byteOffset:t,buffer:r}){if(e<16)throw new Error("Provided message too short to accommodate event stream message overhead");const n=new DataView(r,t,e),o=n.getUint32(0,!1);if(e!==o)throw new Error("Reported message length does not match received message length");const i=n.getUint32(4,!1),s=n.getUint32(8,!1),a=n.getUint32(e-4,!1),c=(new cs).update(new Uint8Array(r,t,8));if(s!==c.digest())throw new Error(`The prelude checksum specified in the message (${s}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(r,t+8,e-12)),a!==c.digest())throw new Error(`The message checksum (${c.digest()}) did not match the expected value of ${a}`);return{headers:new DataView(r,t+8+4,i),body:new Uint8Array(r,t+8+4+i,o-i-16)}}(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}class Ss{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}class xs{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}class Es{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}class Is{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}function Rs(e,t){return async function(r){const{value:n}=r.headers[":message-type"];if("error"===n){const e=new Error(r.headers[":error-message"].value||"UnknownError");throw e.name=r.headers[":error-code"].value,e}if("exception"===n){const n=r.headers[":exception-type"].value,o={[n]:r},i=await e(o);if(i.$unknown){const e=new Error(t(r.body));throw e.name=n,e}throw i[n]}if("event"===n){const t={[r.headers[":event-type"].value]:r},n=await e(t);if(n.$unknown)return;return n}throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}class Ps{constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new As(e,t),this.utfEncoder=e}deserialize(e,t){const r=function(e){let t=0,r=0,n=null,o=null;const i=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,n=new Uint8Array(e),new DataView(n.buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){const s=e[Symbol.asyncIterator]();for(;;){const{value:e,done:a}=await s.next();if(a){if(!t)return;if(t!==r)throw new Error("Truncated event message received.");return void(yield n)}const c=e.length;let u=0;for(;u<c;){if(!n){const t=c-u;o||(o=new Uint8Array(4));const n=Math.min(4-r,t);if(o.set(e.slice(u,u+n),r),r+=n,u+=n,r<4)break;i(new DataView(o.buffer).getUint32(0,!1)),o=null}const s=Math.min(t-r,c-u);n.set(e.slice(u,u+s),r),r+=s,u+=s,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}(e);return new Es({messageStream:new Ss({inputStream:r,decoder:this.eventStreamCodec}),deserializer:Rs(t,this.utfEncoder)})}serialize(e,t){return new xs({messageStream:new Is({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}class Ms{constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new Ps({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const r=Cs(e)?(n=e,{[Symbol.asyncIterator]:async function*(){const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}}}):e;var n;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){const r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})})(r):r}}const Cs=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,Ts=e=>new Ms(e);function Os(e=0){return new Promise(((t,r)=>{e&&setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)}),e)}))}const Ls={supported:void 0};class Ns{static create(e){return"function"==typeof e?.handle?e:new Ns(e)}constructor(e){"function"==typeof e?this.configProvider=e().then((e=>e||{})):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===Ls.supported&&(Ls.supported=Boolean("undefined"!=typeof Request&&"keepalive"in new Request("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);const r=this.config.requestTimeout,n=!0===this.config.keepAlive,o=this.config.credentials;if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let i=e.path;const s=function(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=Yo(r),Array.isArray(n))for(let e=0,o=n.length;e<o;e++)t.push(`${r}=${Yo(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${Yo(n)}`),t.push(e)}}return t.join("&")}(e.query||{});s&&(i+=`?${s}`),e.fragment&&(i+=`#${e.fragment}`);let a="";if(null!=e.username||null!=e.password){a=`${e.username??""}:${e.password??""}@`}const{port:c,method:u}=e,d=`${e.protocol}//${a}${e.hostname}${c?`:${c}`:""}${i}`,l="GET"===u||"HEAD"===u?void 0:e.body,g={body:l,headers:new Headers(e.headers),method:u,credentials:o};this.config?.cache&&(g.cache=this.config.cache),l&&(g.duplex="half"),"undefined"!=typeof AbortController&&(g.signal=t),Ls.supported&&(g.keepalive=n),"function"==typeof this.config.requestInit&&Object.assign(g,this.config.requestInit(e));let h=()=>{};const p=new Request(d,g),f=[fetch(p).then((e=>{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new rr({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then((t=>({response:new rr({headers:r,reason:e.statusText,statusCode:e.status,body:t})})))})),Os(r)];return t&&f.push(new Promise(((e,r)=>{const n=()=>{const e=new Error("Request aborted");e.name="AbortError",r(e)};if("function"==typeof t.addEventListener){const e=t;e.addEventListener("abort",n,{once:!0}),h=()=>e.removeEventListener("abort",n)}else t.onabort=n}))),Promise.race(f).finally(h)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((r=>(r[e]=t,r)))}httpHandlerConfigs(){return this.config??{}}}const $s=e=>"function"==typeof Blob&&e instanceof Blob?async function(e){const t=await function(e){return new Promise(((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",o=e.indexOf(","),i=o>-1?o+1:e.length;t(e.substring(i))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)}))}(e),r=cn(t);return new Uint8Array(r)}(e):async function(e){const t=[],r=e.getReader();let n=!1,o=0;for(;!n;){const{done:e,value:i}=await r.read();i&&(t.push(i),o+=i.length),n=e}const i=new Uint8Array(o);let s=0;for(const e of t)i.set(e,s),s+=e.length;return i}(e);const Bs="function"==typeof TextEncoder?new TextEncoder:null,Fs=e=>{if("string"==typeof e){if(Bs)return Bs.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)},Us=e=>new Date(Date.now()+e),Ds=e=>rr.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Hs=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(Us(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},js=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t};class zs{async sign(e,t,r){if(!tr.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:n,signer:o,signingRegion:i,signingName:s}=await(async e=>{const t=js("context",e.context),r=js("config",e.config),n=t.endpointV2?.properties?.authSchemes?.[0],o=js("signer",r.signer),i=await o(n),s=e?.signingRegion,a=e?.signingName;return{config:r,signer:i,signingRegion:s,signingName:a}})(r);return await o.sign(e,{signingDate:Us(n.systemClockOffset),signingRegion:i,signingService:s})}errorHandler(e){return t=>{const r=t.ServerTime??Ds(t.$response);if(r){const n=js("config",e.config),o=n.systemClockOffset;n.systemClockOffset=Hs(r,n.systemClockOffset);n.systemClockOffset!==o&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const r=Ds(e);if(r){const e=js("config",t.config);e.systemClockOffset=Hs(r,e.systemClockOffset)}}}const qs="required",Vs="fn",Gs="argv",Ws="ref",Zs=!0,Ks="isSet",Js="booleanEquals",Qs="error",Ys="endpoint",Xs="tree",ea="PartitionResult",ta={[qs]:!1,type:"String"},ra={[qs]:!0,default:!1,type:"Boolean"},na={[Ws]:"Endpoint"},oa={[Vs]:Js,[Gs]:[{[Ws]:"UseFIPS"},!0]},ia={[Vs]:Js,[Gs]:[{[Ws]:"UseDualStack"},!0]},sa={},aa={[Vs]:"getAttr",[Gs]:[{[Ws]:ea},"supportsFIPS"]},ca={[Vs]:Js,[Gs]:[!0,{[Vs]:"getAttr",[Gs]:[{[Ws]:ea},"supportsDualStack"]}]},ua=[oa],da=[ia],la=[{[Ws]:"Region"}],ga={version:"1.0",parameters:{Region:ta,UseDualStack:ra,UseFIPS:ra,Endpoint:ta},rules:[{conditions:[{[Vs]:Ks,[Gs]:[na]}],rules:[{conditions:ua,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Qs},{rules:[{conditions:da,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Qs},{endpoint:{url:na,properties:sa,headers:sa},type:Ys}],type:Xs}],type:Xs},{rules:[{conditions:[{[Vs]:Ks,[Gs]:la}],rules:[{conditions:[{[Vs]:"aws.partition",[Gs]:la,assign:ea}],rules:[{conditions:[oa,ia],rules:[{conditions:[{[Vs]:Js,[Gs]:[Zs,aa]},ca],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:sa,headers:sa},type:Ys}],type:Xs}],type:Xs},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Qs}],type:Xs},{conditions:ua,rules:[{conditions:[{[Vs]:Js,[Gs]:[aa,Zs]}],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:sa,headers:sa},type:Ys}],type:Xs}],type:Xs},{error:"FIPS is enabled but this partition does not support FIPS",type:Qs}],type:Xs},{conditions:da,rules:[{conditions:[ca],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:sa,headers:sa},type:Ys}],type:Xs}],type:Xs},{error:"DualStack is enabled but this partition does not support DualStack",type:Qs}],type:Xs},{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",properties:sa,headers:sa},type:Ys}],type:Xs}],type:Xs}],type:Xs},{error:"Invalid Configuration: Missing Region",type:Qs}],type:Xs}]},ha=(e,t={})=>((e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:o,rules:i}=e;t.logger?.debug?.(`${pr} Initial EndpointParams: ${fr(r)}`);const s=Object.entries(o).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(s.length>0)for(const[e,t]of s)r[e]=r[e]??t;const a=Object.entries(o).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==r[e])throw new mr(`Missing required parameter: '${e}'`);const c=Tr(i,{endpointParams:r,logger:n,referenceRecord:{}});return t.logger?.debug?.(`${pr} Resolved endpoint: ${fr(c)}`),c})(ga,{endpointParams:e,logger:t.logger});hr.aws=$r;Error;const pa=["in-region","cross-region","mobile","standard","legacy"],fa=()=>{const e="undefined"!=typeof window&&window?.navigator?.userAgent?is().parse(window.navigator.userAgent):void 0,t=e?.platform?.type;return"tablet"===t||"mobile"===t},ma=e=>{const t=(({defaultsMode:e}={})=>((e,t,r)=>{let n,o,i,s=!1;const a=async()=>{o||(o=e());try{n=await o,i=!0,s=!1}finally{o=void 0}return n};return void 0===t?async e=>(i&&!e?.forceRefresh||(n=await a()),n):async e=>(i&&!e?.forceRefresh||(n=await a()),s?n:r&&!r(n)?(s=!0,n):t(n)?(await a(),n):n)})((async()=>{const t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(fa()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${pa.join(", ")}, got ${t}`)}})))(e),r=()=>t().then(Co),n=(e=>({apiVersion:"2023-09-30",base64Decoder:e?.base64Decoder??cn,base64Encoder:e?.base64Encoder??dn,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ha,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Li,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new zs}],logger:e?.logger??new Fo,serviceId:e?.serviceId??"Bedrock Runtime",urlParser:e?.urlParser??Nn,utf8Decoder:e?.utf8Decoder??un,utf8Encoder:e?.utf8Encoder??ln}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Fs,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ss({serviceId:n.serviceId,clientVersion:$i}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??Ts,maxAttempts:e?.maxAttempts??3,region:e?.region??(o="Region is missing",()=>Promise.reject(o)),requestHandler:Ns.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||jn),sha256:e?.sha256??ns,streamCollector:e?.streamCollector??$s,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(false)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(false))};var o},ka=e=>{let t=async()=>{if(void 0===e.region)throw new Error("Region is missing from runtimeConfig");const t=e.region;return"string"==typeof t?t:t()};return{setRegion(e){t=e},region:()=>t}},ba=e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,n=e.credentials;return{setHttpAuthScheme(e){const r=t.findIndex((t=>t.schemeId===e.schemeId));-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){n=e},credentials:()=>n}},va=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});class wa extends ko{constructor(...[e]){const t=(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"bedrock"}))(ma(e||{})),r=(e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return Zr(t);const e=await t();return Zr(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!Wr(e)||("function"!=typeof r?Promise.resolve(!!r):r())}}})(t),n=(e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>$n(await Gr(r)()):void 0,o=!!r,i={...e,endpoint:n,tls:t,isCustomEndpoint:o,useDualstackEndpoint:Gr(e.useDualstackEndpoint??!1),useFipsEndpoint:Gr(e.useFipsEndpoint??!1)};let s;return i.serviceConfiguredEndpoint=async()=>(e.serviceId&&!s&&(s=Ln(e.serviceId)),s),i})(r);var o;const i=(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}))((e=>{const{retryStrategy:t}=e,r=Gr(e.maxAttempts??3);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await Gr(e.retryMode)()===Hn.ADAPTIVE?new ro(r):new to(r))}})((o=n,{...o,customUserAgent:"string"==typeof o.customUserAgent?[[o.customUserAgent]]:o.customUserAgent})));const s=((e,t)=>{const r={...ka(e),...$o(e),...Gt(e),...ba(e)};return t.forEach((e=>e.configure(r))),{...e,...(i=r,{region:i.region()}),...(o=r,{...Oo(o),...No(o)}),...(n=r,{httpHandler:n.httpHandler()}),...va(r)};var n,o,i})({...Ti(i)},e?.extensions||[]);super(s),this.config=s,this.middlewareStack.use(or(this.config)),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:o,commandName:i,logger:s,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,d=c??t.inputFilterSensitiveLog,l=u??t.outputFilterSensitiveLog,{$metadata:g,...h}=n.output;return s?.info?.({clientName:o,commandName:i,input:d(r.input),output:l(h),metadata:g}),n}catch(e){const{clientName:n,commandName:o,logger:i,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:a}=s,c=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:o,input:c(r.input),error:e,metadata:e.$metadata}),e}}),ir)}})),this.middlewareStack.use(cr(this.config)),this.middlewareStack.use((e=>({applyToStack:t=>{t.add(Hr(e),zr)}}))(this.config)),this.middlewareStack.use(Jo(this.config)),this.middlewareStack.use(In(this.config)),this.middlewareStack.use(((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Kr(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),Jr)}}))(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use(nn(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return Oi}getIdentityProviderConfigProvider(){return async e=>new yn({"aws.auth#sigv4":e.credentials})}}class ya extends Ro{constructor(e){super(e),Object.setPrototypeOf(this,ya.prototype)}}class _a extends ya{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,_a.prototype)}}var Aa;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):t._(e.$unknown[0],e.$unknown[1])}(Aa||(Aa={}));class Sa extends ya{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,Sa.prototype)}}class xa extends ya{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,xa.prototype)}}class Ea extends ya{constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),this.name="ServiceQuotaExceededException",this.$fault="client",Object.setPrototypeOf(this,Ea.prototype)}}class Ia extends ya{constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,Ia.prototype)}}class Ra extends ya{constructor(e){super({name:"ValidationException",$fault:"client",...e}),this.name="ValidationException",this.$fault="client",Object.setPrototypeOf(this,Ra.prototype)}}var Pa;!function(e){e.visit=(e,t)=>void 0!==e.bytes?t.bytes(e.bytes):t._(e.$unknown[0],e.$unknown[1])}(Pa||(Pa={}));var Ma;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):t._(e.$unknown[0],e.$unknown[1])}(Ma||(Ma={}));var Ca,Ta;!function(e){e.visit=(e,t)=>void 0!==e.bytes?t.bytes(e.bytes):t._(e.$unknown[0],e.$unknown[1])}(Ca||(Ca={})),function(e){e.visit=(e,t)=>void 0!==e.json?t.json(e.json):void 0!==e.text?t.text(e.text):void 0!==e.image?t.image(e.image):void 0!==e.document?t.document(e.document):t._(e.$unknown[0],e.$unknown[1])}(Ta||(Ta={}));var Oa;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.image?t.image(e.image):void 0!==e.document?t.document(e.document):void 0!==e.toolUse?t.toolUse(e.toolUse):void 0!==e.toolResult?t.toolResult(e.toolResult):void 0!==e.guardContent?t.guardContent(e.guardContent):t._(e.$unknown[0],e.$unknown[1])}(Oa||(Oa={}));var La,Na,$a,Ba,Fa;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.guardContent?t.guardContent(e.guardContent):t._(e.$unknown[0],e.$unknown[1])}(La||(La={})),function(e){e.visit=(e,t)=>void 0!==e.auto?t.auto(e.auto):void 0!==e.any?t.any(e.any):void 0!==e.tool?t.tool(e.tool):t._(e.$unknown[0],e.$unknown[1])}(Na||(Na={})),function(e){e.visit=(e,t)=>void 0!==e.json?t.json(e.json):t._(e.$unknown[0],e.$unknown[1])}($a||($a={})),function(e){e.visit=(e,t)=>void 0!==e.toolSpec?t.toolSpec(e.toolSpec):t._(e.$unknown[0],e.$unknown[1])}(Ba||(Ba={})),function(e){e.visit=(e,t)=>void 0!==e.message?t.message(e.message):t._(e.$unknown[0],e.$unknown[1])}(Fa||(Fa={}));class Ua extends ya{constructor(e){super({name:"ModelErrorException",$fault:"client",...e}),this.name="ModelErrorException",this.$fault="client",Object.setPrototypeOf(this,Ua.prototype),this.originalStatusCode=e.originalStatusCode,this.resourceName=e.resourceName}}class Da extends ya{constructor(e){super({name:"ModelNotReadyException",$fault:"client",...e}),this.name="ModelNotReadyException",this.$fault="client",Object.setPrototypeOf(this,Da.prototype)}}class Ha extends ya{constructor(e){super({name:"ModelTimeoutException",$fault:"client",...e}),this.name="ModelTimeoutException",this.$fault="client",Object.setPrototypeOf(this,Ha.prototype)}}class ja extends ya{constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),this.name="ServiceUnavailableException",this.$fault="server",Object.setPrototypeOf(this,ja.prototype)}}var za,qa,Va;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.toolUse?t.toolUse(e.toolUse):t._(e.$unknown[0],e.$unknown[1])}(za||(za={})),function(e){e.visit=(e,t)=>void 0!==e.toolUse?t.toolUse(e.toolUse):t._(e.$unknown[0],e.$unknown[1])}(qa||(qa={}));class Ga extends ya{constructor(e){super({name:"ModelStreamErrorException",$fault:"client",...e}),this.name="ModelStreamErrorException",this.$fault="client",Object.setPrototypeOf(this,Ga.prototype),this.originalStatusCode=e.originalStatusCode,this.originalMessage=e.originalMessage}}!function(e){e.visit=(e,t)=>void 0!==e.messageStart?t.messageStart(e.messageStart):void 0!==e.contentBlockStart?t.contentBlockStart(e.contentBlockStart):void 0!==e.contentBlockDelta?t.contentBlockDelta(e.contentBlockDelta):void 0!==e.contentBlockStop?t.contentBlockStop(e.contentBlockStop):void 0!==e.messageStop?t.messageStop(e.messageStop):void 0!==e.metadata?t.metadata(e.metadata):void 0!==e.internalServerException?t.internalServerException(e.internalServerException):void 0!==e.modelStreamErrorException?t.modelStreamErrorException(e.modelStreamErrorException):void 0!==e.validationException?t.validationException(e.validationException):void 0!==e.throttlingException?t.throttlingException(e.throttlingException):void 0!==e.serviceUnavailableException?t.serviceUnavailableException(e.serviceUnavailableException):t._(e.$unknown[0],e.$unknown[1])}(Va||(Va={}));var Wa;!function(e){e.visit=(e,t)=>void 0!==e.chunk?t.chunk(e.chunk):void 0!==e.internalServerException?t.internalServerException(e.internalServerException):void 0!==e.modelStreamErrorException?t.modelStreamErrorException(e.modelStreamErrorException):void 0!==e.validationException?t.validationException(e.validationException):void 0!==e.throttlingException?t.throttlingException(e.throttlingException):void 0!==e.modelTimeoutException?t.modelTimeoutException(e.modelTimeoutException):void 0!==e.serviceUnavailableException?t.serviceUnavailableException(e.serviceUnavailableException):t._(e.$unknown[0],e.$unknown[1])}(Wa||(Wa={}));const Za=e=>({...e,...e.body&&{body:wo}}),Ka=e=>({...e,...e.body&&{body:wo}}),Ja=e=>({...e,...e.body&&{body:wo}}),Qa=e=>({...e,...e.body&&{body:"STREAMING_CONTENT"}}),Ya=(e,t)=>((e,t)=>kn(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}})),Xa=async(e,t)=>{const r=await Ya(e,t);return r.message=r.message??r.Message,r},ec=async(e,t)=>{const r=vn(e,t),n=Uo({},Rc,{[Cc]:e[Mc]||"application/octet-stream",[Pc]:e[Pc],[Uc]:e[Lc],[Bc]:e[Tc],[Fc]:e[Oc]});let o;return r.bp("/model/{modelId}/invoke"),r.p("modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(o=e.body),r.m("POST").h(n).b(o),r.build()},tc=async(e,t)=>{const r=vn(e,t),n=Uo({},Rc,{[Cc]:e[Mc]||"application/octet-stream",[Nc]:e[Pc],[Uc]:e[Lc],[Bc]:e[Tc],[Fc]:e[Oc]});let o;return r.bp("/model/{modelId}/invoke-with-response-stream"),r.p("modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(o=e.body),r.m("POST").h(n).b(o),r.build()},rc=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return oc(e,t);const r=Uo({$metadata:Ic(e),[Mc]:[,e.headers[Cc]]}),n=await kn(e.body,t);return r.body=n,r},nc=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return oc(e,t);const r=Uo({$metadata:Ic(e),[Mc]:[,e.headers[$c]]}),n=e.body;return r.body=bc(n,t),r},oc=async(e,t)=>{const r={...e,body:await Xa(e.body,t)},n=((e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(o=e.headers,i="x-amzn-errortype",Object.keys(o).find((e=>e.toLowerCase()===i.toLowerCase())));var o,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0})(e,r.body);switch(n){case"AccessDeniedException":case"com.amazonaws.bedrockruntime#AccessDeniedException":throw await ac(r,t);case"InternalServerException":case"com.amazonaws.bedrockruntime#InternalServerException":throw await cc(r,t);case"ResourceNotFoundException":case"com.amazonaws.bedrockruntime#ResourceNotFoundException":throw await hc(r,t);case"ServiceQuotaExceededException":case"com.amazonaws.bedrockruntime#ServiceQuotaExceededException":throw await pc(r,t);case"ThrottlingException":case"com.amazonaws.bedrockruntime#ThrottlingException":throw await mc(r,t);case"ValidationException":case"com.amazonaws.bedrockruntime#ValidationException":throw await kc(r,t);case"ModelErrorException":case"com.amazonaws.bedrockruntime#ModelErrorException":throw await uc(r,t);case"ModelNotReadyException":case"com.amazonaws.bedrockruntime#ModelNotReadyException":throw await dc(r,t);case"ModelTimeoutException":case"com.amazonaws.bedrockruntime#ModelTimeoutException":throw await gc(r,t);case"ServiceUnavailableException":case"com.amazonaws.bedrockruntime#ServiceUnavailableException":throw await fc(r,t);case"ModelStreamErrorException":case"com.amazonaws.bedrockruntime#ModelStreamErrorException":throw await lc(r,t);default:const o=r.body;return ic({output:e,parsedBody:o,errorCode:n})}},ic=(sc=ya,({output:e,parsedBody:t,errorCode:r})=>{(({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const o=Mo(e),i=o.httpStatusCode?o.httpStatusCode+"":void 0,s=new r({name:t?.code||t?.Code||n||i||"UnknownError",$fault:"client",$metadata:o});throw Po(s,t)})({output:e,parsedBody:t,exceptionCtor:sc,errorCode:r})});var sc;const ac=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo});Object.assign(r,o);const i=new _a({$metadata:Ic(e),...r});return Po(i,e.body)},cc=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo});Object.assign(r,o);const i=new Sa({$metadata:Ic(e),...r});return Po(i,e.body)},uc=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo,originalStatusCode:_o,resourceName:xo});Object.assign(r,o);const i=new Ua({$metadata:Ic(e),...r});return Po(i,e.body)},dc=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo});Object.assign(r,o);const i=new Da({$metadata:Ic(e),...r});return Po(i,e.body)},lc=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo,originalMessage:xo,originalStatusCode:_o});Object.assign(r,o);const i=new Ga({$metadata:Ic(e),...r});return Po(i,e.body)},gc=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo});Object.assign(r,o);const i=new Ha({$metadata:Ic(e),...r});return Po(i,e.body)},hc=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo});Object.assign(r,o);const i=new xa({$metadata:Ic(e),...r});return Po(i,e.body)},pc=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo});Object.assign(r,o);const i=new Ea({$metadata:Ic(e),...r});return Po(i,e.body)},fc=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo});Object.assign(r,o);const i=new ja({$metadata:Ic(e),...r});return Po(i,e.body)},mc=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo});Object.assign(r,o);const i=new Ia({$metadata:Ic(e),...r});return Po(i,e.body)},kc=async(e,t)=>{const r=Uo({}),n=e.body,o=Do(n,{message:xo});Object.assign(r,o);const i=new Ra({$metadata:Ic(e),...r});return Po(i,e.body)},bc=(e,t)=>t.eventStreamMarshaller.deserialize(e,(async r=>null!=r.chunk?{chunk:await _c(r.chunk,t)}:null!=r.internalServerException?{internalServerException:await vc(r.internalServerException,t)}:null!=r.modelStreamErrorException?{modelStreamErrorException:await wc(r.modelStreamErrorException,t)}:null!=r.validationException?{validationException:await xc(r.validationException,t)}:null!=r.throttlingException?{throttlingException:await Sc(r.throttlingException,t)}:null!=r.modelTimeoutException?{modelTimeoutException:await yc(r.modelTimeoutException,t)}:null!=r.serviceUnavailableException?{serviceUnavailableException:await Ac(r.serviceUnavailableException,t)}:{$unknown:e})),vc=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return cc(r,t)},wc=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return lc(r,t)},yc=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return gc(r,t)},_c=async(e,t)=>{const r={},n=await Ya(e.body,t);return Object.assign(r,Ec(n,t)),r},Ac=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return fc(r,t)},Sc=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return mc(r,t)},xc=async(e,t)=>{const r={...e,body:await Ya(e.body,t)};return kc(r,t)},Ec=(e,t)=>Do(e,{bytes:t.base64Decoder}),Ic=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Rc=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),Pc="accept",Mc="contentType",Cc="content-type",Tc="guardrailIdentifier",Oc="guardrailVersion",Lc="trace",Nc="x-amzn-bedrock-accept",$c="x-amzn-bedrock-content-type",Bc="x-amzn-bedrock-guardrailidentifier",Fc="x-amzn-bedrock-guardrailversion",Uc="x-amzn-bedrock-trace";class Dc extends(bo.classBuilder().ep({...Ni}).m((function(e,t,r,n){return[Xr(r,this.serialize,this.deserialize),Dn(r,e.getEndpointParameterInstructions())]})).s("AmazonBedrockFrontendService","InvokeModelWithResponseStream",{eventStream:{output:!0}}).n("BedrockRuntimeClient","InvokeModelWithResponseStreamCommand").f(Ja,Qa).ser(tc).de(nc).build()){}class Hc extends(bo.classBuilder().ep({...Ni}).m((function(e,t,r,n){return[Xr(r,this.serialize,this.deserialize),Dn(r,e.getEndpointParameterInstructions())]})).s("AmazonBedrockFrontendService","InvokeModel",{}).n("BedrockRuntimeClient","InvokeModelCommand").f(Za,Ka).ser(ec).de(rc).build()){}function jc(e,t){const r=zc();return(jc=function(e,t){return r[e-=471]})(e,t)}function zc(){const e=["length","cohere.command","_processProxyRequest","4EvAOpI","\n\nAssistant:","data","44285wsRihv","_readAsyncIterableResponse","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","\nYou must keep the text formatting.\n\nContent:\n","getReader","POST","Human:\n","208nTpddg","_bedrockClientConfig","join","send","_requestHeaders","ai.aws.requestHeaders","locale","preparePrompt","bytes","_requestParameters","11SKGElm","resolve","application/json","ai21.j2","editor","decode","anthropic.claude-v2","anthropic.claude","text","filter","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","json","_readStreamableResponse","generations","_processAWSRequest","ai.aws.requestParameters","sendRequest","680865PFTDeT","bedrock-2023-05-31","24648lwjAId","ai.aws.bedrockClientConfig","body","61901GUINXu","_getGeneratedText","split","stringify","chunk","abortController","parse","AWSTextAdapter","utf-8","get","config","<<SYS>>\n","completion","completions","toString","_prepareRequestHeaders","test","Instruction:\n","read","define","_readStaticResponse","_apiUrl","844836YCJoTH","1329130pvkXht","getModelFamily","\n<</SYS>>\n[INST]\n","signal","utf8","2JTLAdI","1766511FbwuAi","map","pluginName","_prepareRequestParameters","ai.aws.apiUrl","\n[/INST]","meta.llama","generation","from","AI_ERROR_UNSUPPORTED_MODEL"];return(zc=function(){return e})()}const qc=jc;!function(e){const t=jc,r=e();for(;;)try{if(196238===-parseInt(t(516))/1*(-parseInt(t(499))/2)+-parseInt(t(493))/3*(parseInt(t(513))/4)+parseInt(t(550))/5+parseInt(t(552))/6+-parseInt(t(471))/7*(-parseInt(t(523))/8)+parseInt(t(500))/9+-parseInt(t(494))/10*(parseInt(t(533))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(zc);class Vc extends Ht{static get[qc(502)](){return qc(478)}constructor(e){const t=qc;super(e),e[t(481)][t(480)](t(548))||e[t(481)][t(490)](t(548),{model:t(539),max_tokens_to_sample:2e3,temperature:1,top_p:1,top_k:250,anthropic_version:t(551),stream:!0}),this[t(492)]=e[t(481)][t(480)](t(504)),this[t(524)]=e[t(481)][t(480)](t(553)),this[t(527)]=e[t(481)][t(480)](t(528)),this[t(532)]=e[t(481)][t(480)](t(548))}async[qc(549)]({query:e,context:t,onData:r,actionId:n}){const o=qc,{model:i,stream:s,...a}=await this[o(503)](this[o(532)],n),c={prompt:await this[o(530)](e,t,i,n),...a};this[o(492)]?await this[o(512)](c,i,s,r,n):await this[o(547)](c,i,s,r)}async[qc(530)](e,t,r,n){const o=qc;let i,s;return t?(i=o(543),s=o(488)+e+o(519)+t):(i=o(518),s=e),o(506)==this[o(495)](r)?o(482)+i+o(496)+s+o(505):o(522)+i+"\n"+s+o(514)}[qc(495)](e){const t=qc;if(/^anthropic\.claude/[t(487)](e))return t(540);if(/^ai21\.j2/[t(487)](e))return t(536);if(/^cohere\.command/[t(487)](e))return t(511);if(/^meta\.llama/[t(487)](e))return t(506);throw new J(Q(this[t(537)][t(529)],t(509),e))}async[qc(512)](e,t,r,n,o){const i=qc,s={method:i(521),headers:await this[i(486)](this[i(527)],o),body:JSON[i(474)]({...e,model:t,stream:r}),signal:this[i(476)][i(497)]},a=await fetch(this[i(492)],s);r?await this[i(545)](a,t,n):await this[i(491)](a,t,n)}async[qc(547)](e,t,r,n){const o=qc,i=new wa(this[o(524)]),s={body:JSON[o(474)](e),contentType:o(535),accept:o(535),modelId:t};let a;if(r){const e=new Dc(s);a=await i[o(526)](e,{abortSignal:this[o(476)][o(497)]}),await this[o(517)](a,t,n)}else{const e=new Hc(s);a=await i[o(526)](e,{abortSignal:this[o(476)][o(497)]}),await this[o(491)](a,t,n)}}async[qc(517)](e,t,r){const n=qc,o=e[n(554)],i=new TextDecoder(n(479));let s="";for await(const e of o)if(e[n(475)]){const o=i[n(538)](e[n(475)][n(531)]),a=JSON[n(477)](o);s+=this[n(472)](a,t),r(s)}return Promise[n(534)]()}async[qc(545)](e,t,r){const n=qc,o=e[n(554)],i=new TextDecoder(n(479)),s=o[n(520)]();let a="",c="",u=!1;for(;!u;){const{done:e,value:o}=await s[n(489)]();if(u=e,u)break;const d=(a+i[n(538)](o))[n(473)]("\n")[n(501)]((e=>{const t=n;try{return a="",JSON[t(477)](e)}catch(t){return a=e,null}}))[n(542)]((e=>null!==e));d[n(510)]&&(c+=d[n(501)]((e=>this[n(472)](e,t)))[n(525)](""),r(c))}return Promise[n(534)]()}async[qc(491)](e,t,r){const n=qc;let o;return o=e instanceof Response?await e[n(544)]():JSON[n(477)](Buffer[n(508)](e[n(554)])[n(485)](n(498))),r(this[n(472)](o,t)),Promise[n(534)]()}[qc(472)](e,t){const r=qc;switch(this[r(495)](t)){case r(540):return e[r(483)];case r(536):return e[r(484)][0][r(515)][r(541)];case r(511):return e[r(546)][0][r(541)];case r(506):return e[r(507)]}}}function Gc(){var e=["65478LlUDqz","12lHfnEW","1271625jstWsV","799495oymvqm","2591667AhcMGe","2306352QfgFER","136IBepky","9jXvVwm","756134ZAdPme","31193620zpTwQJ"];return(Gc=function(){return e})()}function Wc(e,t){var r=Gc();return(Wc=function(e,t){return r[e-=207]})(e,t)}!function(e){for(var t=Wc,r=e();;)try{if(669494===-parseInt(t(216))/1+-parseInt(t(212))/2+-parseInt(t(208))/3+parseInt(t(215))/4*(-parseInt(t(207))/5)+parseInt(t(209))/6+-parseInt(t(214))/7*(-parseInt(t(210))/8)+-parseInt(t(211))/9*(-parseInt(t(213))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Gc)})(),(window.CKEditor5=window.CKEditor5||{}).ai=n})();
|