@inappstory/react-sdk 0.0.1 → 0.0.2

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/dist/index.js CHANGED
@@ -1,17 +1,9 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","react-dom"],t);else{var r="object"==typeof exports?t(require("react"),require("react-dom")):t(e.react,e["react-dom"]);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,((__WEBPACK_EXTERNAL_MODULE__9155__,__WEBPACK_EXTERNAL_MODULE__9514__)=>(()=>{var __webpack_modules__={3643:function(e){e.exports=function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},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 i=r(18),n=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,i){void 0===i&&(i=!1);var n=e.getVersionPrecision(t),o=e.getVersionPrecision(r),s=Math.max(n,o),a=0,l=e.map([t,r],(function(t){var r=s-e.getVersionPrecision(t),i=t+new Array(r+1).join(".0");return e.map(i.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(i&&(a=s-Math.min(n,o)),s-=1;s>=a;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===a)return 0;s-=1}else if(l[0][s]<l[1][s])return-1}},e.map=function(e,t){var r,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)i.push(t(e[r]));return i},e.find=function(e,t){var r,i;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,i=e.length;r<i;r+=1){var n=e[r];if(t(n,r))return n}},e.assign=function(e){for(var t,r,i=e,n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var a=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){i[t]=e[t]}))};for(t=0,r=o.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return i.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return i.BROWSER_MAP[e]||""},e}();t.default=n,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 i,n=(i=r(91))&&i.__esModule?i:{default:i},o=r(18);function s(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(){}var t,r,i;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 n.default(e,t)},e.parse=function(e){return new n.default(e).getResult()},t=e,i=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(r=null)&&s(t.prototype,r),i&&s(t,i),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i=l(r(92)),n=l(r(93)),o=l(r(94)),s=l(r(95)),a=l(r(17));function l(e){return e&&e.__esModule?e:{default:e}}var d=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(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.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(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.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(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.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={},i=0,n={},o=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(n[t]=s,o+=1):"object"==typeof s&&(r[t]=s,i+=1)})),i>0){var s=Object.keys(r),l=a.default.find(s,(function(e){return t.isOS(e)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}var c=a.default.find(s,(function(e){return t.isPlatform(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}}if(o>0){var p=Object.keys(n),f=a.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(n[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),i=e.toLowerCase(),n=a.default.getBrowserTypeByAlias(i);return t&&n&&(i=n.toLowerCase()),i===r},t.compareVersion=function(e){var t=[0],r=e,i=!1,n=this.getBrowserVersion();if("string"==typeof n)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(i=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(i=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(n,r,i))>-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=d,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i,n=(i=r(17))&&i.__esModule?i:{default:i},o=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=n.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=n.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=n.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=n.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,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=n.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=n.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=n.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=n.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=n.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=n.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=n.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=n.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=n.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=n.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=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(o,e)||n.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=n.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=n.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=n.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=n.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=n.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=n.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=n.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=n.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=n.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=n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:n.default.getFirstMatch(t,e),version:n.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 i,n=(i=r(17))&&i.__esModule?i:{default:i},o=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=n.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=n.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=n.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=n.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=n.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=n.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=n.default.getMacOSVersionName(t),i={name:o.OS_MAP.MacOS,version:t};return r&&(i.versionName=r),i}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=n.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.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=n.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=n.default.getAndroidVersionName(t),i={name:o.OS_MAP.Android,version:t};return r&&(i.versionName=r),i}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=n.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=n.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||n.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||n.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=n.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=n.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=n.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.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 i,n=(i=r(17))&&i.__esModule?i:{default:i},o=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=n.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.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=n.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.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:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.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 i,n=(i=r(17))&&i.__esModule?i:{default:i},o=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=n.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=n.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:o.ENGINE_MAP.Presto},r=n.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:o.ENGINE_MAP.Gecko},r=n.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=n.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})},6689:(e,t)=>{"use strict";function r(e,t,r){var i=(void 0===r?{}:r).last,n=void 0!==i&&i;if("string"!=typeof e)throw new TypeError("expected a string");if(!Array.isArray(t))throw new TypeError("expected a string array of separators");if("boolean"!=typeof n)throw new TypeError("expected a Boolean value for options.last");for(var o=[],s="",a=!1,l=0,d=!1,c=!1,u=0,p=e;u<p.length;u++){var f=p[u];d?c?c=!1:"\\"===f?c=!0:f===d&&(d=!1):'"'===f||"'"===f?d=f:"("===f?l+=1:")"===f?l>0&&(l-=1):0===l&&-1!==t.indexOf(f)&&(a=!0),a?(""!==s&&o.push(s.trim()),s="",a=!1):s+=f}return(n||""!==s)&&o.push(s.trim()),o}Object.defineProperty(t,"__esModule",{value:!0}),t.split=r,t.splitBySpaces=function(e){return r(e,[" ","\n","\t"])},t.splitByCommas=function(e){return r(e,[","],{last:!0})}},4430:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(935),n=r.n(i)()((function(e){return e[1]}));n.push([e.id,".favorite-images-wrapper--AOnK4{display:flex;flex-direction:row;flex-wrap:wrap;padding:var(--storiesListItemTitlePadding, 0px);margin:-5px}.favorite-image-wrapper---S0mV{width:50%;position:relative}.favorite-image--Q7by3{position:relative}.favorite-image-item--fn1hO{position:absolute;top:3px;bottom:3px;left:3px;right:3px;border-radius:calc(var(--storiesListInnerBorderRadiusRead, 0)/4);background-position:50% 50%;background-size:cover}.circle_style--TT-gg .favorite-image-item--fn1hO{border-radius:50%}",""]),n.locals={"favorite-images-wrapper":"favorite-images-wrapper--AOnK4","favorite-image-wrapper":"favorite-image-wrapper---S0mV","favorite-image":"favorite-image--Q7by3","favorite-image-item":"favorite-image-item--fn1hO",circle_style:"circle_style--TT-gg"};const o=n},2015:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(935),n=r.n(i)()((function(e){return e[1]}));n.push([e.id,'.stories-slide-wrapper--Eu4FL:not(:last-child){margin-right:var(--storiesGap, 20px)}.stories-slide-wrapper--Eu4FL{display:flex;flex-direction:column;flex:0 0 auto;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.stories-slide-wrapper--Eu4FL:hover{text-decoration:none}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY{display:block;box-sizing:border-box;text-align:left;position:relative;overflow:visible;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);border:var(--storiesListBorderNotReadWidth, 2px) solid var(--storiesBorderNotReadColor, #00b956);padding:var(--storiesListBorderGapNotRead, 2px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz{border-radius:var(--storiesListBorderRadius, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n .stories-slide-image--zgQfM,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz .stories-slide-image--zgQfM{border-radius:var(--storiesListInnerBorderRadiusNotRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n .stories-slide-image__image---oTSg,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n .stories-slide-image__image---oTSg video,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz .stories-slide-image__image---oTSg,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz .stories-slide-image__image---oTSg video{border-radius:var(--storiesListInnerBorderRadiusNotRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n .stories-slide__mask--Ber5G,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz .stories-slide__mask--Ber5G{border-radius:var(--storiesListInnerBorderRadiusNotRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n .stories-slide__content--LjEaM,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz .stories-slide__content--LjEaM{border-radius:var(--storiesListInnerBorderRadiusNotRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU{border-radius:var(--storiesListBorderRadiusRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU .stories-slide-image--zgQfM,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU .stories-slide-image--zgQfM{border-radius:var(--storiesListInnerBorderRadiusRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU .stories-slide-image__image---oTSg,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU .stories-slide-image__image---oTSg video,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU .stories-slide-image__image---oTSg,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU .stories-slide-image__image---oTSg video{border-radius:var(--storiesListInnerBorderRadiusRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU .stories-slide__mask--Ber5G,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU .stories-slide__mask--Ber5G{border-radius:var(--storiesListInnerBorderRadiusRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU .stories-slide__content--LjEaM,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU .stories-slide__content--LjEaM{border-radius:var(--storiesListInnerBorderRadiusRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._is-read--NWzFU{border:var(--storiesListBorderReadWidth, 1px) solid var(--storiesBorderReadColor, #ededed)}.stories-slide-wrapper--Eu4FL.isTitleCardOutsideTop--2qKPA{justify-content:flex-end}.stories-slide-wrapper--Eu4FL.isTitleCardOutsideBottom--EcZG0{justify-content:flex-start}.stories-slide-wrapper--Eu4FL .stories-slide__inner--HaGAt{display:block;position:relative;width:100%;height:100%}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-black--8BJrr{background:#000}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-white--0gTtw{background:#fff}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-red--VMW-4{background:#ff1a36}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-yellow--csphQ{background:#fff000}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-green--lCytC{background:#0be361}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-violet--ugACH{background:#b300bc}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-blue--6LiA6{background:#0761db}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-grey--DegqH{background:#a8a8a8}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-black-gradient--a-37K{background:#fff;background:linear-gradient(0deg, #c1c1c1, #000)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-white-gradient--Kj\\+jG{background:#fff;background:linear-gradient(180deg, #fff, #ffc800)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-red-gradient--Un\\+pH{background:#ff1a36;background:linear-gradient(180deg, #c90174, #eb5c57)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-yellow-gradient--B-6yy{background:#fff000;background:linear-gradient(0deg, #fbda61, #f76b1c)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-green-gradient--kA2Ff{background:#0be361;background:linear-gradient(0deg, #b4ed50, #429321)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-violet-gradient--8DGOP{background:#b300bc;background:linear-gradient(180deg, #c90174, #0164fd)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-blue-gradient--NzQAx{background:#0761db;background:linear-gradient(180deg, #3023ae, #53a0fe 48%, #b4ed50)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-grey-gradient--GOcun{background:#a8a8a8;background:linear-gradient(0deg, #e2e2e2, #959595)}.stories-slide-wrapper--Eu4FL .stories-slide-image--zgQfM{position:relative;width:100%;height:100%}.stories-slide-wrapper--Eu4FL .stories-slide-image__wrap--rugpz{position:absolute;top:0;bottom:0;left:0;right:0}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg{position:relative;opacity:1;transition:opacity .3s ease-in-out;overflow:hidden}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg._mode_list--2wqnv{width:100%;height:100%}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg.ugc-card-cell--YZJvg img{object-fit:contain}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg img{width:100%;height:100%;object-fit:cover}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg video{min-height:100%;min-width:100%;width:100%;background-position:center center;background-repeat:no-repeat;object-fit:cover;opacity:0}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg.video-loaded--qoXRV img{display:none}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg.video-loaded--qoXRV video{opacity:1}.stories-slide-wrapper--Eu4FL .stories-slide__mask--Ber5G{position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;background-color:var(--storiesListItemMaskColor, rgba(0, 0, 0, 0));background-image:var(--storiesListItemMaskLinearGradient, none);opacity:1}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._is-read--NWzFU .stories-slide__mask--Ber5G{background-color:var(--storiesListItemOpenedMaskColor, rgba(0, 0, 0, 0));background-image:var(--storiesListItemOpenedMaskLinearGradient, none)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._ugc-cell--Om\\+Zg .stories-slide__mask--Ber5G{background-color:var(--storiesListCardUgcMaskColor, rgba(0, 0, 0, 0));background-image:var(--storiesListCardUgcMaskLinearGradient, none)}.stories-slide-wrapper--Eu4FL .stories-slide__content--LjEaM{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;height:100%;max-height:100%;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;color:var(--storiesListItemTitleColor, white);font-family:var(--storiesListItemTitleFontFamily);font-weight:normal;font-size:1rem;line-height:normal;font:var(--storiesListItemTitleFont, normal);text-decoration:none;padding:var(--storiesListItemTitlePadding, 0px)}.stories-slide-wrapper--Eu4FL .stories-slide__content--LjEaM.__position_outside_top--GVCj7,.stories-slide-wrapper--Eu4FL .stories-slide__content--LjEaM.__position_outside_bottom--hSPHX{position:relative;top:unset;right:unset;bottom:unset;left:unset;height:auto}.stories-slide-wrapper--Eu4FL .clamp--bYx4q{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.stories-slide-wrapper--Eu4FL .stories-slide__title--19c02{white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:none;user-select:none}.stories-slide-wrapper--Eu4FL .stories-slide__title--19c02.align-left--DFBdw{text-align:left}.stories-slide-wrapper--Eu4FL .stories-slide__title--19c02.align-center--NBBJ8{text-align:center}.stories-slide-wrapper--Eu4FL .stories-slide__title--19c02.align-right--hL1z8{text-align:right}.stories-slide--1vMTY._format-circle--4OAh7,.stories-slide--1vMTY._format-circle--4OAh7 .stories-slide-image__image---oTSg,.stories-slide--1vMTY._format-circle--4OAh7 .stories-slide-image__image---oTSg video,.stories-slide--1vMTY._format-circle--4OAh7 .stories-slide__mask--Ber5G,.stories-slide--1vMTY._format-circle--4OAh7 .stories-slide-image--zgQfM{border-radius:50%}.stories-slide--1vMTY._favorite-cell--Ii5\\+C .stories-slide__mask--Ber5G{background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%)}.stories-slide--1vMTY._favorite-cell--Ii5\\+C._format-circle--4OAh7 .stories-slide-image__wrap--rugpz{display:flex}.stories-slide--1vMTY._favorite-cell--Ii5\\+C._format-circle--4OAh7 .stories-slide-image__image---oTSg{width:85%;height:85%;overflow:visible;margin:auto}.stories-slide--1vMTY._favorite-cell--Ii5\\+C._format-circle--4OAh7 .favorite-images-wrapper--5OA4B{margin:0;padding:0}.stories-slide--1vMTY._has-drop-shadow--nD8LL{filter:drop-shadow(var(--storiesListCardDropShadow, none))}.stories-slide--1vMTY._has-drop-shadow--nD8LL._is-read--NWzFU{filter:drop-shadow(var(--storiesListCardOpenedDropShadow, none))}.stories-slide--1vMTY._has-drop-shadow--nD8LL._favorite-cell--Ii5\\+C{filter:drop-shadow(var(--storiesListCardFavoriteDropShadow, none))}.stories-slide--1vMTY._has-drop-shadow--nD8LL._ugc-cell--Om\\+Zg{filter:drop-shadow(var(--storiesListCardUgcDropShadow, none))}.stories-slide--1vMTY._has-card-svg-mask--1mjGW .stories-slide__inner--HaGAt{-webkit-mask-image:var(--storiesListCardMask);mask-image:var(--storiesListCardMask)}.stories-slide--1vMTY._has-card-svg-mask--1mjGW._is-read--NWzFU .stories-slide__inner--HaGAt{-webkit-mask-image:var(--storiesListCardOpenedMask);mask-image:var(--storiesListCardOpenedMask)}.stories-slide--1vMTY._has-card-svg-mask--1mjGW._favorite-cell--Ii5\\+C .stories-slide__inner--HaGAt{-webkit-mask-image:var(--storiesListCardFavoriteMask);mask-image:var(--storiesListCardFavoriteMask)}.stories-slide--1vMTY._has-card-svg-mask--1mjGW._ugc-cell--Om\\+Zg .stories-slide__inner--HaGAt{-webkit-mask-image:var(--storiesListCardUgcMask);mask-image:var(--storiesListCardUgcMask)}.stories-slide--1vMTY .card-overlay-svg-mask--u8qsW{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:3}@supports(((mask-image: linear-gradient(0deg, #fff, #fff), linear-gradient(0deg, #fff, #fff)) and (mask-clip: content-box, border-box)) or ((-webkit-mask-image: linear-gradient(0deg, #fff, #fff), linear-gradient(0deg, #fff, #fff)) and (-webkit-mask-clip: content-box, border-box))) and ((mask-composite: exclude) or (-webkit-mask-composite: xor)){.stories-slide--1vMTY._has-border-gradient-color--EWPsK{border-color:rgba(0,0,0,0)}.stories-slide--1vMTY._has-border-gradient-color--EWPsK:before{content:"";position:absolute;border-radius:inherit;box-sizing:border-box;-webkit-mask-composite:xor;mask-composite:exclude;padding:var(--storiesListBorderNotReadWidth, 2px);top:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);right:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);bottom:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);left:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);background:var(--storiesBorderNotReadGradientColor, transparent);-webkit-mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);-webkit-mask-clip:content-box,border-box;mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);mask-clip:content-box,border-box}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._is-read--NWzFU{border-color:rgba(0,0,0,0)}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._is-read--NWzFU:before{padding:var(--storiesListBorderReadWidth, 2px);top:calc(var(--storiesListBorderReadWidth, 2px)*-1);right:calc(var(--storiesListBorderReadWidth, 2px)*-1);bottom:calc(var(--storiesListBorderReadWidth, 2px)*-1);left:calc(var(--storiesListBorderReadWidth, 2px)*-1);background:var(--storiesBorderReadGradientColor, transparent);-webkit-mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);-webkit-mask-clip:content-box,border-box;mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);mask-clip:content-box,border-box}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._favorite-cell--Ii5\\+C{border-color:rgba(0,0,0,0)}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._favorite-cell--Ii5\\+C:before{padding:var(--storiesListBorderNotReadWidth, 2px);top:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);right:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);bottom:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);left:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);background:var(--storiesListCardFavoriteGradientColor, transparent);-webkit-mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);-webkit-mask-clip:content-box,border-box;mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);mask-clip:content-box,border-box}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._ugc-cell--Om\\+Zg{border-color:rgba(0,0,0,0)}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._ugc-cell--Om\\+Zg:before{padding:var(--storiesListBorderNotReadWidth, 2px);top:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);right:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);bottom:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);left:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);background:var(--storiesListCardUgcGradientColor, transparent);-webkit-mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);-webkit-mask-clip:content-box,border-box;mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);mask-clip:content-box,border-box}}',""]),n.locals={"stories-slide-wrapper":"stories-slide-wrapper--Eu4FL","stories-slide":"stories-slide--1vMTY","_format-quad":"_format-quad--7Qf7n","_format-rectangle":"_format-rectangle--HFYDz","stories-slide-image":"stories-slide-image--zgQfM","stories-slide-image__image":"stories-slide-image__image---oTSg","stories-slide__mask":"stories-slide__mask--Ber5G","stories-slide__content":"stories-slide__content--LjEaM","_is-read":"_is-read--NWzFU",isTitleCardOutsideTop:"isTitleCardOutsideTop--2qKPA",isTitleCardOutsideBottom:"isTitleCardOutsideBottom--EcZG0","stories-slide__inner":"stories-slide__inner--HaGAt","_background-color-black":"_background-color-black--8BJrr","_background-color-white":"_background-color-white--0gTtw","_background-color-red":"_background-color-red--VMW-4","_background-color-yellow":"_background-color-yellow--csphQ","_background-color-green":"_background-color-green--lCytC","_background-color-violet":"_background-color-violet--ugACH","_background-color-blue":"_background-color-blue--6LiA6","_background-color-grey":"_background-color-grey--DegqH","_background-color-black-gradient":"_background-color-black-gradient--a-37K","_background-color-white-gradient":"_background-color-white-gradient--Kj+jG","_background-color-red-gradient":"_background-color-red-gradient--Un+pH","_background-color-yellow-gradient":"_background-color-yellow-gradient--B-6yy","_background-color-green-gradient":"_background-color-green-gradient--kA2Ff","_background-color-violet-gradient":"_background-color-violet-gradient--8DGOP","_background-color-blue-gradient":"_background-color-blue-gradient--NzQAx","_background-color-grey-gradient":"_background-color-grey-gradient--GOcun","stories-slide-image__wrap":"stories-slide-image__wrap--rugpz",_mode_list:"_mode_list--2wqnv","ugc-card-cell":"ugc-card-cell--YZJvg","video-loaded":"video-loaded--qoXRV","_ugc-cell":"_ugc-cell--Om+Zg",__position_outside_top:"__position_outside_top--GVCj7",__position_outside_bottom:"__position_outside_bottom--hSPHX",clamp:"clamp--bYx4q","stories-slide__title":"stories-slide__title--19c02","align-left":"align-left--DFBdw","align-center":"align-center--NBBJ8","align-right":"align-right--hL1z8","_format-circle":"_format-circle--4OAh7","_favorite-cell":"_favorite-cell--Ii5+C","favorite-images-wrapper":"favorite-images-wrapper--5OA4B","_has-drop-shadow":"_has-drop-shadow--nD8LL","_has-card-svg-mask":"_has-card-svg-mask--1mjGW","card-overlay-svg-mask":"card-overlay-svg-mask--u8qsW","_has-border-gradient-color":"_has-border-gradient-color--EWPsK"};const o=n},4037:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(935),n=r.n(i)()((function(e){return e[1]}));n.push([e.id,".stories-list-controls--TJdI1{pointer-events:none}.stories-list-controls--TJdI1 .control-left--PZc5K,.stories-list-controls--TJdI1 .control-right--wMPBr,.stories-list-controls--TJdI1 .control-top--JEQNd,.stories-list-controls--TJdI1 .control-bottom--9VDBN{cursor:pointer;position:absolute;background-color:var(--storiesListControlsBackgroundColor, white);border-radius:50%;z-index:10;height:var(--storiesListControlsSize);width:var(--storiesListControlsSize);top:50%;display:flex;justify-content:center;align-items:center;pointer-events:all}.stories-list-controls--TJdI1 .control-icon--UhwL\\+{width:7px;height:12px;background-color:var(--storiesListControlsColor, black)}.stories-list-controls--TJdI1 .control-left--PZc5K{left:0;transform:translateY(-50%)}.stories-list-controls--TJdI1 .control-top--JEQNd{top:var(--storiesListTopPadding, 0);left:50%;transform:translate3d(-50%, 0, 0) rotate(90deg)}.stories-list-controls--TJdI1 .control-left--PZc5K .control-icon--UhwL\\+,.stories-list-controls--TJdI1 .control-top--JEQNd .control-icon--UhwL\\+{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 11L1 6L6 1' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 11L1 6L6 1' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}.stories-list-controls--TJdI1 .control-right--wMPBr{right:0;transform:translateY(-50%)}.stories-list-controls--TJdI1 .control-bottom--9VDBN{top:auto;bottom:var(--storiesListBottomPadding, 0);right:50%;transform:translate3d(50%, 0, 0) rotate(90deg)}.stories-list-controls--TJdI1 .control-right--wMPBr .control-icon--UhwL\\+,.stories-list-controls--TJdI1 .control-bottom--9VDBN .control-icon--UhwL\\+{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11L6 6L1 1' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11L6 6L1 1' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}",""]),n.locals={"stories-list-controls":"stories-list-controls--TJdI1","control-left":"control-left--PZc5K","control-right":"control-right--wMPBr","control-top":"control-top--JEQNd","control-bottom":"control-bottom--9VDBN","control-icon":"control-icon--UhwL+"};const o=n},6599:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(935),n=r.n(i)()((function(e){return e[1]}));n.push([e.id,"h3{margin:0}.stories-list-wrapper--WujCQ{background-color:var(--background-color, transparent);height:auto;padding:0;position:relative}.stories-list-wrapper--WujCQ.mode-desktop--hEfDW.with-list-controls--FUmt7{position:relative}.stories-list--rPnFQ{position:relative;overflow:visible}@media(min-width: 767.99px){.stories-list--rPnFQ{overflow:hidden}}.stories-list__actions--NHHiK{position:absolute;right:0;top:0}.stories-list__viewport--pi1K8{overflow:hidden;height:auto}.stories-list__viewport--pi1K8:not(.mode-desktop--hEfDW){display:flex}.stories-list__viewport-inner--jaeLt{display:flex;flex-wrap:nowrap;overflow-x:scroll;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-top:var(--storiesListTopPadding, 0);padding-bottom:var(--storiesListBottomPadding, 0);box-sizing:content-box}.stories-list__viewport-inner--jaeLt::-webkit-scrollbar{display:none}.stories-list__viewport-inner--jaeLt.mode-desktop--hEfDW{scroll-behavior:unset;cursor:grab}.stories-list__viewport-inner--jaeLt.mode-desktop--hEfDW.isVerticalDirection--EBTTg{flex-flow:row wrap;overflow-y:scroll}.stories-list__viewport-inner--jaeLt.align-center---OAy0{margin-left:auto;margin-right:auto}.stories-list__viewport-inner--jaeLt.align-left--uuemX{margin-right:auto}.stories-list__viewport-inner--jaeLt.align-right--0IQA6{margin-left:auto}.stories-list__viewport-inner--jaeLt.isTitleCardOutsideTop--Kw1jl{align-items:flex-end}.stories-list__viewport-inner--jaeLt.isTitleCardOutsideBottom--umr8u{align-items:flex-start}",""]),n.locals={"stories-list-wrapper":"stories-list-wrapper--WujCQ","mode-desktop":"mode-desktop--hEfDW","with-list-controls":"with-list-controls--FUmt7","stories-list":"stories-list--rPnFQ","stories-list__actions":"stories-list__actions--NHHiK","stories-list__viewport":"stories-list__viewport--pi1K8","stories-list__viewport-inner":"stories-list__viewport-inner--jaeLt",isVerticalDirection:"isVerticalDirection--EBTTg","align-center":"align-center---OAy0","align-left":"align-left--uuemX","align-right":"align-right--0IQA6",isTitleCardOutsideTop:"isTitleCardOutsideTop--Kw1jl",isTitleCardOutsideBottom:"isTitleCardOutsideBottom--umr8u"};const o=n},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,i){"string"==typeof e&&(e=[[null,e,""]]);var n={};if(i)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(n[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);i&&n[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),t.push(l))}},t}},2743:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,r){return e.concat(t).map((function(e){return i(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var n={};return r.isMergeableObject(e)&&o(e).forEach((function(t){n[t]=i(e[t],r)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&r.isMergeableObject(t[o])?n[o]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(o,r)(e[o],t[o],r):n[o]=i(t[o],r))})),n}function l(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||n,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=i;var s=Array.isArray(r);return s===Array.isArray(e)?s?o.arrayMerge(e,r,o):a(e,r,o):i(r,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var d=l;e.exports=d},7875:function(e,t,r){
2
- /*!
3
- * @overview es6-promise - a tiny implementation of Promises/A+.
4
- * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
5
- * @license Licensed under MIT license
6
- * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
7
- * @version v4.2.8+1e68dce6
8
- */
9
- e.exports=function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var i=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,o=void 0,s=void 0,a=function(e,t){b[n]=e,b[n+1]=t,2===(n+=2)&&(s?s(w):C())};function l(e){s=e}function d(e){a=e}var c="undefined"!=typeof window?window:void 0,u=c||{},p=u.MutationObserver||u.WebKitMutationObserver,f="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function g(){return function(){return process.nextTick(w)}}function v(){return void 0!==o?function(){o(w)}:_()}function m(){var e=0,t=new p(w),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}function y(){var e=new MessageChannel;return e.port1.onmessage=w,function(){return e.port2.postMessage(0)}}function _(){var e=setTimeout;return function(){return e(w,1)}}var b=new Array(1e3);function w(){for(var e=0;e<n;e+=2)(0,b[e])(b[e+1]),b[e]=void 0,b[e+1]=void 0;n=0}function S(){try{var e=Function("return this")().require("vertx");return o=e.runOnLoop||e.runOnContext,v()}catch(e){return _()}}var C=void 0;function k(e,t){var r=this,i=new this.constructor(x);void 0===i[L]&&V(i);var n=r._state;if(n){var o=arguments[n-1];a((function(){return G(n,i,o,r._result)}))}else W(r,i,e,t);return i}function O(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var r=new t(x);return D(r,e),r}C=f?g():p?m():h?y():void 0===c?S():_();var L=Math.random().toString(36).substring(2);function x(){}var A=void 0,E=1,M=2;function T(){return new TypeError("You cannot resolve a promise with itself")}function R(){return new TypeError("A promises callback cannot return that same promise.")}function I(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}function P(e,t,r){a((function(e){var i=!1,n=I(r,t,(function(r){i||(i=!0,t!==r?D(e,r):N(e,r))}),(function(t){i||(i=!0,U(e,t))}),"Settle: "+(e._label||" unknown promise"));!i&&n&&(i=!0,U(e,n))}),e)}function F(e,t){t._state===E?N(e,t._result):t._state===M?U(e,t._result):W(t,void 0,(function(t){return D(e,t)}),(function(t){return U(e,t)}))}function j(e,r,i){r.constructor===e.constructor&&i===k&&r.constructor.resolve===O?F(e,r):void 0===i?N(e,r):t(i)?P(e,r,i):N(e,r)}function D(t,r){if(t===r)U(t,T());else if(e(r)){var i=void 0;try{i=r.then}catch(e){return void U(t,e)}j(t,r,i)}else N(t,r)}function B(e){e._onerror&&e._onerror(e._result),$(e)}function N(e,t){e._state===A&&(e._result=t,e._state=E,0!==e._subscribers.length&&a($,e))}function U(e,t){e._state===A&&(e._state=M,e._result=t,a(B,e))}function W(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+E]=r,n[o+M]=i,0===o&&e._state&&a($,e)}function $(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,s=0;s<t.length;s+=3)i=t[s],n=t[s+r],i?G(r,i,n,o):n(o);e._subscribers.length=0}}function G(e,r,i,n){var o=t(i),s=void 0,a=void 0,l=!0;if(o){try{s=i(n)}catch(e){l=!1,a=e}if(r===s)return void U(r,R())}else s=n;r._state!==A||(o&&l?D(r,s):!1===l?U(r,a):e===E?N(r,s):e===M&&U(r,s))}function q(e,t){try{t((function(t){D(e,t)}),(function(t){U(e,t)}))}catch(t){U(e,t)}}var z=0;function H(){return z++}function V(e){e[L]=z++,e._state=void 0,e._result=void 0,e._subscribers=[]}function Y(){return new Error("Array Methods must be provided an Array")}var K=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(x),this.promise[L]||V(this.promise),i(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?N(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&N(this.promise,this._result))):U(this.promise,Y())}return e.prototype._enumerate=function(e){for(var t=0;this._state===A&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,i=r.resolve;if(i===O){var n=void 0,o=void 0,s=!1;try{n=e.then}catch(e){s=!0,o=e}if(n===k&&e._state!==A)this._settledAt(e._state,t,e._result);else if("function"!=typeof n)this._remaining--,this._result[t]=e;else if(r===te){var a=new r(x);s?U(a,o):j(a,e,n),this._willSettleAt(a,t)}else this._willSettleAt(new r((function(t){return t(e)})),t)}else this._willSettleAt(i(e),t)},e.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===A&&(this._remaining--,e===M?U(i,r):this._result[t]=r),0===this._remaining&&N(i,this._result)},e.prototype._willSettleAt=function(e,t){var r=this;W(e,void 0,(function(e){return r._settledAt(E,t,e)}),(function(e){return r._settledAt(M,t,e)}))},e}();function Q(e){return new K(this,e).promise}function X(e){var t=this;return i(e)?new t((function(r,i){for(var n=e.length,o=0;o<n;o++)t.resolve(e[o]).then(r,i)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function J(e){var t=new this(x);return U(t,e),t}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ee(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var te=function(){function e(t){this[L]=H(),this._result=this._state=void 0,this._subscribers=[],x!==t&&("function"!=typeof t&&Z(),this instanceof e?q(this,t):ee())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var r=this,i=r.constructor;return t(e)?r.then((function(t){return i.resolve(e()).then((function(){return t}))}),(function(t){return i.resolve(e()).then((function(){throw t}))})):r.then(e,e)},e}();function re(){var e=void 0;if(void 0!==r.g)e=r.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===i&&!t.cast)return}e.Promise=te}return te.prototype.then=k,te.all=Q,te.race=X,te.resolve=O,te.reject=J,te._setScheduler=l,te._setAsap=d,te._asap=a,te.polyfill=re,te.Promise=te,te}()},46:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,i){function n(r){e.removeListener(t,o),i(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",n),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,n,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function d(e,t,r,i){var n,o,s,d;if(a(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(n=l(e))>0&&s.length>n&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,d=c,console&&console.warn&&console.warn(d)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=c.bind(i);return n.listener=r,i.wrapFn=n,n}function p(e,t,r){var i=e._events;if(void 0===i)return[];var n=i[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(n):h(n,n.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function g(e,t,r,i){if("function"==typeof e.on)i.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function n(o){i.once&&e.removeEventListener(t,n),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var d=l.length,c=h(l,d);for(r=0;r<d;++r)i(c[r],this,t)}return!0},o.prototype.addListener=function(e,t){return d(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return d(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,u(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,u(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,i,n,o,s;if(a(t),void 0===(i=this._events))return this;if(void 0===(r=i[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(n=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,n),1===r.length&&(i[e]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var n,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5985:(e,t,r)=>{"use strict";var i=r(524),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?s:a[e.$$typeof]||n}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=s;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,i){if("string"!=typeof r){if(h){var n=f(r);n&&n!==h&&e(t,n,i)}var s=c(r);u&&(s=s.concat(u(r)));for(var a=l(t),g=l(r),v=0;v<s.length;++v){var m=s[v];if(!(o[m]||i&&i[m]||g&&g[m]||a&&a[m])){var y=p(r,m);try{d(t,m,y)}catch(e){}}}}return t}},3103:(e,t,r)=>{var i=r(4715)(r(8942),"DataView");e.exports=i},5098:(e,t,r)=>{var i=r(3305),n=r(9361),o=r(1112),s=r(5276),a=r(7452);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=n,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},1386:(e,t,r)=>{var i=r(2393),n=r(2049),o=r(7144),s=r(5071),a=r(3964);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=n,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},9770:(e,t,r)=>{var i=r(4715)(r(8942),"Map");e.exports=i},8250:(e,t,r)=>{var i=r(9753),n=r(5681),o=r(88),s=r(4732),a=r(9068);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=n,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},9413:(e,t,r)=>{var i=r(4715)(r(8942),"Promise");e.exports=i},4512:(e,t,r)=>{var i=r(4715)(r(8942),"Set");e.exports=i},3212:(e,t,r)=>{var i=r(8250),n=r(1877),o=r(8006);function s(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new i;++t<r;)this.add(e[t])}s.prototype.add=s.prototype.push=n,s.prototype.has=o,e.exports=s},1340:(e,t,r)=>{var i=r(1386),n=r(4103),o=r(1779),s=r(4162),a=r(7462),l=r(6638);function d(e){var t=this.__data__=new i(e);this.size=t.size}d.prototype.clear=n,d.prototype.delete=o,d.prototype.get=s,d.prototype.has=a,d.prototype.set=l,e.exports=d},5650:(e,t,r)=>{var i=r(8942).Symbol;e.exports=i},1623:(e,t,r)=>{var i=r(8942).Uint8Array;e.exports=i},9270:(e,t,r)=>{var i=r(4715)(r(8942),"WeakMap");e.exports=i},6912:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},9756:(e,t,r)=>{var i=r(2478);e.exports=function(e,t){return!!(null==e?0:e.length)&&i(e,t,0)>-1}},3316:e=>{e.exports=function(e,t,r){for(var i=-1,n=null==e?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}},358:(e,t,r)=>{var i=r(6137),n=r(3283),o=r(3142),s=r(5853),a=r(9632),l=r(8666),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),c=!r&&n(e),u=!r&&!c&&s(e),p=!r&&!c&&!u&&l(e),f=r||c||u||p,h=f?i(e.length,String):[],g=h.length;for(var v in e)!t&&!d.call(e,v)||f&&("length"==v||u&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,g))||h.push(v);return h}},1129:e=>{e.exports=function(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}},4810:(e,t,r)=>{var i=r(7073),n=r(6285);e.exports=function(e,t,r){(void 0!==r&&!n(e[t],r)||void 0===r&&!(t in e))&&i(e,t,r)}},3422:(e,t,r)=>{var i=r(7073),n=r(6285),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var s=e[t];o.call(e,t)&&n(s,r)&&(void 0!==r||t in e)||i(e,t,r)}},7034:(e,t,r)=>{var i=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(i(e[r][0],t))return r;return-1}},7073:(e,t,r)=>{var i=r(2532);e.exports=function(e,t,r){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},9747:(e,t,r)=>{var i=r(1580),n=Object.create,o=function(){function e(){}return function(t){if(!i(t))return{};if(n)return n(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},7250:e=>{e.exports=function(e,t,r,i){for(var n=e.length,o=r+(i?1:-1);i?o--:++o<n;)if(t(e[o],o,e))return o;return-1}},313:(e,t,r)=>{var i=r(1129),n=r(714);e.exports=function e(t,r,o,s,a){var l=-1,d=t.length;for(o||(o=n),a||(a=[]);++l<d;){var c=t[l];r>0&&o(c)?r>1?e(c,r-1,o,s,a):i(a,c):s||(a[a.length]=c)}return a}},5636:(e,t,r)=>{var i=r(6596)();e.exports=i},7379:(e,t,r)=>{var i=r(5650),n=r(8870),o=r(9005),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?n(e):o(e)}},2478:(e,t,r)=>{var i=r(7250),n=r(9454),o=r(7706);e.exports=function(e,t,r){return t==t?o(e,t,r):i(e,n,r)}},6027:(e,t,r)=>{var i=r(7379),n=r(547);e.exports=function(e){return n(e)&&"[object Arguments]"==i(e)}},9454:e=>{e.exports=function(e){return e!=e}},9624:(e,t,r)=>{var i=r(3655),n=r(4759),o=r(1580),s=r(4066),a=/^\[object .+?Constructor\]$/,l=Function.prototype,d=Object.prototype,c=l.toString,u=d.hasOwnProperty,p=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||n(e))&&(i(e)?p:a).test(s(e))}},674:(e,t,r)=>{var i=r(7379),n=r(5387),o=r(547),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&n(e.length)&&!!s[i(e)]}},195:(e,t,r)=>{var i=r(4882),n=r(8121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return n(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},7200:(e,t,r)=>{var i=r(1580),n=r(4882),o=r(8546),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return o(e);var t=n(e),r=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&r.push(a);return r}},91:(e,t,r)=>{var i=r(1340),n=r(4810),o=r(5636),s=r(6885),a=r(1580),l=r(5288),d=r(8763);e.exports=function e(t,r,c,u,p){t!==r&&o(r,(function(o,l){if(p||(p=new i),a(o))s(t,r,l,c,e,u,p);else{var f=u?u(d(t,l),o,l+"",t,r,p):void 0;void 0===f&&(f=o),n(t,l,f)}}),l)}},6885:(e,t,r)=>{var i=r(4810),n=r(7099),o=r(2264),s=r(4354),a=r(5964),l=r(3283),d=r(3142),c=r(5406),u=r(5853),p=r(3655),f=r(1580),h=r(8360),g=r(8666),v=r(8763),m=r(4207);e.exports=function(e,t,r,y,_,b,w){var S=v(e,r),C=v(t,r),k=w.get(C);if(k)i(e,r,k);else{var O=b?b(S,C,r+"",e,t,w):void 0,L=void 0===O;if(L){var x=d(C),A=!x&&u(C),E=!x&&!A&&g(C);O=C,x||A||E?d(S)?O=S:c(S)?O=s(S):A?(L=!1,O=n(C,!0)):E?(L=!1,O=o(C,!0)):O=[]:h(C)||l(C)?(O=S,l(S)?O=m(S):f(S)&&!p(S)||(O=a(C))):L=!1}L&&(w.set(C,O),_(O,C,y,b,w),w.delete(C)),i(e,r,O)}}},3945:(e,t,r)=>{var i=r(2053),n=r(5234),o=r(796);e.exports=function(e,t){return o(n(e,t,i),e+"")}},7403:(e,t,r)=>{var i=r(2619),n=r(2532),o=r(2053),s=n?function(e,t){return n(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o;e.exports=s},6137:e=>{e.exports=function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}},6403:(e,t,r)=>{var i=r(2945),n=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(n,""):e}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5630:(e,t,r)=>{var i=r(3212),n=r(9756),o=r(3316),s=r(5568),a=r(6208),l=r(9828);e.exports=function(e,t,r){var d=-1,c=n,u=e.length,p=!0,f=[],h=f;if(r)p=!1,c=o;else if(u>=200){var g=t?null:a(e);if(g)return l(g);p=!1,c=s,h=new i}else h=t?[]:f;e:for(;++d<u;){var v=e[d],m=t?t(v):v;if(v=r||0!==v?v:0,p&&m==m){for(var y=h.length;y--;)if(h[y]===m)continue e;t&&h.push(m),f.push(v)}else c(h,m,r)||(h!==f&&h.push(m),f.push(v))}return f}},5568:e=>{e.exports=function(e,t){return e.has(t)}},8898:(e,t,r)=>{var i=r(1623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},7099:(e,t,r)=>{e=r.nmd(e);var i=r(8942),n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,s=o&&o.exports===n?i.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,i=a?a(r):new e.constructor(r);return e.copy(i),i}},2264:(e,t,r)=>{var i=r(8898);e.exports=function(e,t){var r=t?i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},4354:e=>{e.exports=function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}},9032:(e,t,r)=>{var i=r(3422),n=r(7073);e.exports=function(e,t,r,o){var s=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var d=t[a],c=o?o(r[d],e[d],d,r,e):void 0;void 0===c&&(c=e[d]),s?n(r,d,c):i(r,d,c)}return r}},1950:(e,t,r)=>{var i=r(8942)["__core-js_shared__"];e.exports=i},7848:(e,t,r)=>{var i=r(3945),n=r(4535);e.exports=function(e){return i((function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&n(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++i<o;){var l=r[i];l&&e(t,l,i,s)}return t}))}},6596:e=>{e.exports=function(e){return function(t,r,i){for(var n=-1,o=Object(t),s=i(t),a=s.length;a--;){var l=s[e?a:++n];if(!1===r(o[l],l,o))break}return t}}},6208:(e,t,r)=>{var i=r(4512),n=r(9071),o=r(9828),s=i&&1/o(new i([,-0]))[1]==1/0?function(e){return new i(e)}:n;e.exports=s},2532:(e,t,r)=>{var i=r(4715),n=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},4967:(e,t,r)=>{var i="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=i},4700:(e,t,r)=>{var i=r(9067);e.exports=function(e,t){var r=e.__data__;return i(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var i=r(9624),n=r(155);e.exports=function(e,t){var r=n(e,t);return i(r)?r:void 0}},4784:(e,t,r)=>{var i=r(3766)(Object.getPrototypeOf,Object);e.exports=i},8870:(e,t,r)=>{var i=r(5650),n=Object.prototype,o=n.hasOwnProperty,s=n.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var i=!0}catch(e){}var n=s.call(e);return i&&(t?e[a]=r:delete e[a]),n}},8486:(e,t,r)=>{var i=r(3103),n=r(9770),o=r(9413),s=r(4512),a=r(9270),l=r(7379),d=r(4066),c="[object Map]",u="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=d(i),v=d(n),m=d(o),y=d(s),_=d(a),b=l;(i&&b(new i(new ArrayBuffer(1)))!=h||n&&b(new n)!=c||o&&b(o.resolve())!=u||s&&b(new s)!=p||a&&b(new a)!=f)&&(b=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,i=r?d(r):"";if(i)switch(i){case g:return h;case v:return c;case m:return u;case y:return p;case _:return f}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var i=r(4497);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var i=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var i=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:n.call(t,e)}},7452:(e,t,r)=>{var i=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},5964:(e,t,r)=>{var i=r(9747),n=r(4784),o=r(4882);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:i(n(e))}},714:(e,t,r)=>{var i=r(5650),n=r(3283),o=r(3142),s=i?i.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||n(e)||!!(s&&e&&e[s])}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var i=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<r}},4535:(e,t,r)=>{var i=r(6285),n=r(6529),o=r(9632),s=r(1580);e.exports=function(e,t,r){if(!s(r))return!1;var a=typeof t;return!!("number"==a?n(r)&&o(t,r.length):"string"==a&&t in r)&&i(r[t],e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var i,n=r(1950),o=(i=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!o&&o in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var i=r(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=i(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var i=r(7034);e.exports=function(e){var t=this.__data__,r=i(t,e);return r<0?void 0:t[r][1]}},5071:(e,t,r)=>{var i=r(7034);e.exports=function(e){return i(this.__data__,e)>-1}},3964:(e,t,r)=>{var i=r(7034);e.exports=function(e,t){var r=this.__data__,n=i(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},9753:(e,t,r)=>{var i=r(5098),n=r(1386),o=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||n),string:new i}}},5681:(e,t,r)=>{var i=r(4700);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var i=r(4700);e.exports=function(e){return i(this,e).get(e)}},4732:(e,t,r)=>{var i=r(4700);e.exports=function(e){return i(this,e).has(e)}},9068:(e,t,r)=>{var i=r(4700);e.exports=function(e,t){var r=i(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},4497:(e,t,r)=>{var i=r(4715)(Object,"create");e.exports=i},8121:(e,t,r)=>{var i=r(3766)(Object.keys,Object);e.exports=i},8546:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},2306:(e,t,r)=>{e=r.nmd(e);var i=r(4967),n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,s=o&&o.exports===n&&i.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5234:(e,t,r)=>{var i=r(6912),n=Math.max;e.exports=function(e,t,r){return t=n(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=n(o.length-t,0),l=Array(a);++s<a;)l[s]=o[t+s];s=-1;for(var d=Array(t+1);++s<t;)d[s]=o[s];return d[t]=r(l),i(e,this,d)}}},8942:(e,t,r)=>{var i=r(4967),n="object"==typeof self&&self&&self.Object===Object&&self,o=i||n||Function("return this")();e.exports=o},8763:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},9828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},796:(e,t,r)=>{var i=r(7403),n=r(8554)(i);e.exports=n},8554:e=>{var t=Date.now;e.exports=function(e){var r=0,i=0;return function(){var n=t(),o=16-(n-i);if(i=n,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},4103:(e,t,r)=>{var i=r(1386);e.exports=function(){this.__data__=new i,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var i=r(1386),n=r(9770),o=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof i){var s=r.__data__;if(!n||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(e,t),this.size=r.size,this}},7706:e=>{e.exports=function(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2945:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},4871:(e,t,r)=>{var i=r(1129),n=r(313),o=r(4354),s=r(3142);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return i(s(r)?o(r):[r],n(t,1))}},2619:e=>{e.exports=function(e){return function(){return e}}},2784:(e,t,r)=>{var i=r(1580),n=r(4495),o=r(6131),s=Math.max,a=Math.min;e.exports=function(e,t,r){var l,d,c,u,p,f,h=0,g=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=l,i=d;return l=d=void 0,h=t,u=e.apply(i,r)}function _(e){var r=e-f;return void 0===f||r>=t||r<0||v&&e-h>=c}function b(){var e=n();if(_(e))return w(e);p=setTimeout(b,function(e){var r=t-(e-f);return v?a(r,c-(e-h)):r}(e))}function w(e){return p=void 0,m&&l?y(e):(l=d=void 0,u)}function S(){var e=n(),r=_(e);if(l=arguments,d=this,f=e,r){if(void 0===p)return function(e){return h=e,p=setTimeout(b,t),g?y(e):u}(f);if(v)return clearTimeout(p),p=setTimeout(b,t),y(f)}return void 0===p&&(p=setTimeout(b,t)),u}return t=o(t)||0,i(r)&&(g=!!r.leading,c=(v="maxWait"in r)?s(o(r.maxWait)||0,t):c,m="trailing"in r?!!r.trailing:m),S.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=d=p=void 0},S.flush=function(){return void 0===p?u:w(n())},S}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3981:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},2053:e=>{e.exports=function(e){return e}},3283:(e,t,r)=>{var i=r(6027),n=r(547),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return n(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var i=r(3655),n=r(5387);e.exports=function(e){return null!=e&&n(e.length)&&!i(e)}},5406:(e,t,r)=>{var i=r(6529),n=r(547);e.exports=function(e){return n(e)&&i(e)}},5853:(e,t,r)=>{e=r.nmd(e);var i=r(8942),n=r(4772),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||n;e.exports=l},3514:(e,t,r)=>{var i=r(195),n=r(8486),o=r(3283),s=r(3142),a=r(6529),l=r(5853),d=r(4882),c=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||o(e)))return!e.length;var t=n(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(d(e))return!i(e).length;for(var r in e)if(u.call(e,r))return!1;return!0}},3655:(e,t,r)=>{var i=r(7379),n=r(1580);e.exports=function(e){if(!n(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},986:(e,t,r)=>{var i=r(7379),n=r(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==i(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8360:(e,t,r)=>{var i=r(7379),n=r(4784),o=r(547),s=Function.prototype,a=Object.prototype,l=s.toString,d=a.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=i(e))return!1;var t=n(e);if(null===t)return!0;var r=d.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==c}},8138:(e,t,r)=>{var i=r(7379),n=r(3142),o=r(547);e.exports=function(e){return"string"==typeof e||!n(e)&&o(e)&&"[object String]"==i(e)}},1187:(e,t,r)=>{var i=r(7379),n=r(547);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==i(e)}},8666:(e,t,r)=>{var i=r(674),n=r(9460),o=r(2306),s=o&&o.isTypedArray,a=s?n(s):i;e.exports=a},5288:(e,t,r)=>{var i=r(358),n=r(7200),o=r(6529);e.exports=function(e){return o(e)?i(e,!0):n(e)}},2451:(e,t,r)=>{var i=r(91),n=r(7848)((function(e,t,r){i(e,t,r)}));e.exports=n},9071:e=>{e.exports=function(){}},4495:(e,t,r)=>{var i=r(8942);e.exports=function(){return i.Date.now()}},4772:e=>{e.exports=function(){return!1}},6131:(e,t,r)=>{var i=r(6403),n=r(1580),o=r(1187),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var r=a.test(e);return r||l.test(e)?d(e.slice(2),r?2:8):s.test(e)?NaN:+e}},4207:(e,t,r)=>{var i=r(9032),n=r(5288);e.exports=function(e){return i(e,n(e))}},2438:(e,t,r)=>{var i=r(5630);e.exports=function(e){return e&&e.length?i(e):[]}},1513:e=>{"use strict";
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","react-dom"],t);else{var r="object"==typeof exports?t(require("react"),require("react-dom")):t(e.react,e["react-dom"]);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,((__WEBPACK_EXTERNAL_MODULE__9155__,__WEBPACK_EXTERNAL_MODULE__9514__)=>(()=>{var __webpack_modules__={3643:function(e){e.exports=function(e){var t={};function r(i){if(t[i])return t[i].exports;var o=t[i]={i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(i,o,function(t){return e[t]}.bind(null,o));return i},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 i=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,i){void 0===i&&(i=!1);var o=e.getVersionPrecision(t),n=e.getVersionPrecision(r),s=Math.max(o,n),a=0,l=e.map([t,r],(function(t){var r=s-e.getVersionPrecision(t),i=t+new Array(r+1).join(".0");return e.map(i.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(i&&(a=s-Math.min(o,n)),s-=1;s>=a;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===a)return 0;s-=1}else if(l[0][s]<l[1][s])return-1}},e.map=function(e,t){var r,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)i.push(t(e[r]));return i},e.find=function(e,t){var r,i;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,i=e.length;r<i;r+=1){var o=e[r];if(t(o,r))return o}},e.assign=function(e){for(var t,r,i=e,o=arguments.length,n=new Array(o>1?o-1:0),s=1;s<o;s++)n[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(n));var a=function(){var e=n[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){i[t]=e[t]}))};for(t=0,r=n.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return i.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return i.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 i,o=(i=r(91))&&i.__esModule?i:{default:i},n=r(18);function s(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(){}var t,r,i;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,i=[{key:"BROWSER_MAP",get:function(){return n.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return n.ENGINE_MAP}},{key:"OS_MAP",get:function(){return n.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return n.PLATFORMS_MAP}}],(r=null)&&s(t.prototype,r),i&&s(t,i),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i=l(r(92)),o=l(r(93)),n=l(r(94)),s=l(r(95)),a=l(r(17));function l(e){return e&&e.__esModule?e:{default:e}}var d=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(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.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(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.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={},i=0,o={},n=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(o[t]=s,n+=1):"object"==typeof s&&(r[t]=s,i+=1)})),i>0){var s=Object.keys(r),l=a.default.find(s,(function(e){return t.isOS(e)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}var c=a.default.find(s,(function(e){return t.isPlatform(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}}if(n>0){var p=Object.keys(o),f=a.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(o[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),i=e.toLowerCase(),o=a.default.getBrowserTypeByAlias(i);return t&&o&&(i=o.toLowerCase()),i===r},t.compareVersion=function(e){var t=[0],r=e,i=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(i=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(i=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(o,r,i))>-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=d,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i,o=(i=r(17))&&i.__esModule?i:{default:i},n=/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(n,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(n,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(n,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=o.default.getFirstMatch(n,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(n,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(n,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(n,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(n,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=o.default.getFirstMatch(n,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(n,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(n,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=o.default.getFirstMatch(n,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(n,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(n,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(n,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(n,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(n,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(n,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(n,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(n,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(n,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(n,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(n,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(n,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(n,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=o.default.getFirstMatch(n,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=o.default.getFirstMatch(n,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 i,o=(i=r(17))&&i.__esModule?i:{default:i},n=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:n.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:n.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:n.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:n.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),i={name:n.OS_MAP.MacOS,version:t};return r&&(i.versionName=r),i}},{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:n.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),i={name:n.OS_MAP.Android,version:t};return r&&(i.versionName=r),i}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:n.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:n.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:n.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:n.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:n.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:n.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:n.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 i,o=(i=r(17))&&i.__esModule?i:{default:i},n=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:n.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:n.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:n.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:n.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:n.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:n.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:n.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:n.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:n.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:n.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:n.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:n.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:n.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:n.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:n.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:n.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:n.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:n.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:n.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:n.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 i,o=(i=r(17))&&i.__esModule?i:{default:i},n=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:n.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:n.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:n.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:n.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:n.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:n.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:n.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}})},6689:(e,t)=>{"use strict";function r(e,t,r){var i=(void 0===r?{}:r).last,o=void 0!==i&&i;if("string"!=typeof e)throw new TypeError("expected a string");if(!Array.isArray(t))throw new TypeError("expected a string array of separators");if("boolean"!=typeof o)throw new TypeError("expected a Boolean value for options.last");for(var n=[],s="",a=!1,l=0,d=!1,c=!1,u=0,p=e;u<p.length;u++){var f=p[u];d?c?c=!1:"\\"===f?c=!0:f===d&&(d=!1):'"'===f||"'"===f?d=f:"("===f?l+=1:")"===f?l>0&&(l-=1):0===l&&-1!==t.indexOf(f)&&(a=!0),a?(""!==s&&n.push(s.trim()),s="",a=!1):s+=f}return(o||""!==s)&&n.push(s.trim()),n}Object.defineProperty(t,"__esModule",{value:!0}),t.split=r,t.splitBySpaces=function(e){return r(e,[" ","\n","\t"])},t.splitByCommas=function(e){return r(e,[","],{last:!0})}},4430:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(935),o=r.n(i)()((function(e){return e[1]}));o.push([e.id,".favorite-images-wrapper--AOnK4{display:flex;flex-direction:row;flex-wrap:wrap;padding:var(--storiesListItemTitlePadding, 0px);margin:-5px}.favorite-image-wrapper---S0mV{width:50%;position:relative}.favorite-image--Q7by3{position:relative}.favorite-image-item--fn1hO{position:absolute;top:3px;bottom:3px;left:3px;right:3px;border-radius:calc(var(--storiesListInnerBorderRadiusRead, 0)/4);background-position:50% 50%;background-size:cover}.circle_style--TT-gg .favorite-image-item--fn1hO{border-radius:50%}",""]),o.locals={"favorite-images-wrapper":"favorite-images-wrapper--AOnK4","favorite-image-wrapper":"favorite-image-wrapper---S0mV","favorite-image":"favorite-image--Q7by3","favorite-image-item":"favorite-image-item--fn1hO",circle_style:"circle_style--TT-gg"};const n=o},2015:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(935),o=r.n(i)()((function(e){return e[1]}));o.push([e.id,'.stories-slide-wrapper--Eu4FL:not(:last-child){margin-right:var(--storiesGap, 20px)}.stories-slide-wrapper--Eu4FL{display:flex;flex-direction:column;flex:0 0 auto;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.stories-slide-wrapper--Eu4FL:hover{text-decoration:none}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY{display:block;box-sizing:border-box;text-align:left;position:relative;overflow:visible;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);border:var(--storiesListBorderNotReadWidth, 2px) solid var(--storiesBorderNotReadColor, #00b956);padding:var(--storiesListBorderGapNotRead, 2px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz{border-radius:var(--storiesListBorderRadius, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n .stories-slide-image--zgQfM,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz .stories-slide-image--zgQfM{border-radius:var(--storiesListInnerBorderRadiusNotRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n .stories-slide-image__image---oTSg,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n .stories-slide-image__image---oTSg video,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz .stories-slide-image__image---oTSg,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz .stories-slide-image__image---oTSg video{border-radius:var(--storiesListInnerBorderRadiusNotRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n .stories-slide__mask--Ber5G,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz .stories-slide__mask--Ber5G{border-radius:var(--storiesListInnerBorderRadiusNotRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n .stories-slide__content--LjEaM,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz .stories-slide__content--LjEaM{border-radius:var(--storiesListInnerBorderRadiusNotRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU{border-radius:var(--storiesListBorderRadiusRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU .stories-slide-image--zgQfM,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU .stories-slide-image--zgQfM{border-radius:var(--storiesListInnerBorderRadiusRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU .stories-slide-image__image---oTSg,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU .stories-slide-image__image---oTSg video,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU .stories-slide-image__image---oTSg,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU .stories-slide-image__image---oTSg video{border-radius:var(--storiesListInnerBorderRadiusRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU .stories-slide__mask--Ber5G,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU .stories-slide__mask--Ber5G{border-radius:var(--storiesListInnerBorderRadiusRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-quad--7Qf7n._is-read--NWzFU .stories-slide__content--LjEaM,.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._format-rectangle--HFYDz._is-read--NWzFU .stories-slide__content--LjEaM{border-radius:var(--storiesListInnerBorderRadiusRead, 5px)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._is-read--NWzFU{border:var(--storiesListBorderReadWidth, 1px) solid var(--storiesBorderReadColor, #ededed)}.stories-slide-wrapper--Eu4FL.isTitleCardOutsideTop--2qKPA{justify-content:flex-end}.stories-slide-wrapper--Eu4FL.isTitleCardOutsideBottom--EcZG0{justify-content:flex-start}.stories-slide-wrapper--Eu4FL .stories-slide__inner--HaGAt{display:block;position:relative;width:100%;height:100%}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-black--8BJrr{background:#000}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-white--0gTtw{background:#fff}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-red--VMW-4{background:#ff1a36}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-yellow--csphQ{background:#fff000}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-green--lCytC{background:#0be361}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-violet--ugACH{background:#b300bc}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-blue--6LiA6{background:#0761db}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-grey--DegqH{background:#a8a8a8}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-black-gradient--a-37K{background:#fff;background:linear-gradient(0deg, #c1c1c1, #000)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-white-gradient--Kj\\+jG{background:#fff;background:linear-gradient(180deg, #fff, #ffc800)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-red-gradient--Un\\+pH{background:#ff1a36;background:linear-gradient(180deg, #c90174, #eb5c57)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-yellow-gradient--B-6yy{background:#fff000;background:linear-gradient(0deg, #fbda61, #f76b1c)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-green-gradient--kA2Ff{background:#0be361;background:linear-gradient(0deg, #b4ed50, #429321)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-violet-gradient--8DGOP{background:#b300bc;background:linear-gradient(180deg, #c90174, #0164fd)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-blue-gradient--NzQAx{background:#0761db;background:linear-gradient(180deg, #3023ae, #53a0fe 48%, #b4ed50)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._background-color-grey-gradient--GOcun{background:#a8a8a8;background:linear-gradient(0deg, #e2e2e2, #959595)}.stories-slide-wrapper--Eu4FL .stories-slide-image--zgQfM{position:relative;width:100%;height:100%}.stories-slide-wrapper--Eu4FL .stories-slide-image__wrap--rugpz{position:absolute;top:0;bottom:0;left:0;right:0}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg{position:relative;opacity:1;transition:opacity .3s ease-in-out;overflow:hidden}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg._mode_list--2wqnv{width:100%;height:100%}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg.ugc-card-cell--YZJvg img{object-fit:contain}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg img{width:100%;height:100%;object-fit:cover}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg video{min-height:100%;min-width:100%;width:100%;background-position:center center;background-repeat:no-repeat;object-fit:cover;opacity:0}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg.video-loaded--qoXRV img{display:none}.stories-slide-wrapper--Eu4FL .stories-slide-image__image---oTSg.video-loaded--qoXRV video{opacity:1}.stories-slide-wrapper--Eu4FL .stories-slide__mask--Ber5G{position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;background-color:var(--storiesListItemMaskColor, rgba(0, 0, 0, 0));background-image:var(--storiesListItemMaskLinearGradient, none);opacity:1}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._is-read--NWzFU .stories-slide__mask--Ber5G{background-color:var(--storiesListItemOpenedMaskColor, rgba(0, 0, 0, 0));background-image:var(--storiesListItemOpenedMaskLinearGradient, none)}.stories-slide-wrapper--Eu4FL .stories-slide--1vMTY._ugc-cell--Om\\+Zg .stories-slide__mask--Ber5G{background-color:var(--storiesListCardUgcMaskColor, rgba(0, 0, 0, 0));background-image:var(--storiesListCardUgcMaskLinearGradient, none)}.stories-slide-wrapper--Eu4FL .stories-slide__content--LjEaM{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;height:100%;max-height:100%;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;color:var(--storiesListItemTitleColor, white);font-family:var(--storiesListItemTitleFontFamily);font-weight:normal;font-size:1rem;line-height:normal;font:var(--storiesListItemTitleFont, normal);text-decoration:none;padding:var(--storiesListItemTitlePadding, 0px)}.stories-slide-wrapper--Eu4FL .stories-slide__content--LjEaM.__position_outside_top--GVCj7,.stories-slide-wrapper--Eu4FL .stories-slide__content--LjEaM.__position_outside_bottom--hSPHX{position:relative;top:unset;right:unset;bottom:unset;left:unset;height:auto}.stories-slide-wrapper--Eu4FL .clamp--bYx4q{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.stories-slide-wrapper--Eu4FL .stories-slide__title--19c02{white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:none;user-select:none}.stories-slide-wrapper--Eu4FL .stories-slide__title--19c02.align-left--DFBdw{text-align:left}.stories-slide-wrapper--Eu4FL .stories-slide__title--19c02.align-center--NBBJ8{text-align:center}.stories-slide-wrapper--Eu4FL .stories-slide__title--19c02.align-right--hL1z8{text-align:right}.stories-slide--1vMTY._format-circle--4OAh7,.stories-slide--1vMTY._format-circle--4OAh7 .stories-slide-image__image---oTSg,.stories-slide--1vMTY._format-circle--4OAh7 .stories-slide-image__image---oTSg video,.stories-slide--1vMTY._format-circle--4OAh7 .stories-slide__mask--Ber5G,.stories-slide--1vMTY._format-circle--4OAh7 .stories-slide-image--zgQfM{border-radius:50%}.stories-slide--1vMTY._favorite-cell--Ii5\\+C .stories-slide__mask--Ber5G{background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%)}.stories-slide--1vMTY._favorite-cell--Ii5\\+C._format-circle--4OAh7 .stories-slide-image__wrap--rugpz{display:flex}.stories-slide--1vMTY._favorite-cell--Ii5\\+C._format-circle--4OAh7 .stories-slide-image__image---oTSg{width:85%;height:85%;overflow:visible;margin:auto}.stories-slide--1vMTY._favorite-cell--Ii5\\+C._format-circle--4OAh7 .favorite-images-wrapper--5OA4B{margin:0;padding:0}.stories-slide--1vMTY._has-drop-shadow--nD8LL{filter:drop-shadow(var(--storiesListCardDropShadow, none))}.stories-slide--1vMTY._has-drop-shadow--nD8LL._is-read--NWzFU{filter:drop-shadow(var(--storiesListCardOpenedDropShadow, none))}.stories-slide--1vMTY._has-drop-shadow--nD8LL._favorite-cell--Ii5\\+C{filter:drop-shadow(var(--storiesListCardFavoriteDropShadow, none))}.stories-slide--1vMTY._has-drop-shadow--nD8LL._ugc-cell--Om\\+Zg{filter:drop-shadow(var(--storiesListCardUgcDropShadow, none))}.stories-slide--1vMTY._has-card-svg-mask--1mjGW .stories-slide__inner--HaGAt{-webkit-mask-image:var(--storiesListCardMask);mask-image:var(--storiesListCardMask)}.stories-slide--1vMTY._has-card-svg-mask--1mjGW._is-read--NWzFU .stories-slide__inner--HaGAt{-webkit-mask-image:var(--storiesListCardOpenedMask);mask-image:var(--storiesListCardOpenedMask)}.stories-slide--1vMTY._has-card-svg-mask--1mjGW._favorite-cell--Ii5\\+C .stories-slide__inner--HaGAt{-webkit-mask-image:var(--storiesListCardFavoriteMask);mask-image:var(--storiesListCardFavoriteMask)}.stories-slide--1vMTY._has-card-svg-mask--1mjGW._ugc-cell--Om\\+Zg .stories-slide__inner--HaGAt{-webkit-mask-image:var(--storiesListCardUgcMask);mask-image:var(--storiesListCardUgcMask)}.stories-slide--1vMTY .card-overlay-svg-mask--u8qsW{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:3}@supports(((mask-image: linear-gradient(0deg, #fff, #fff), linear-gradient(0deg, #fff, #fff)) and (mask-clip: content-box, border-box)) or ((-webkit-mask-image: linear-gradient(0deg, #fff, #fff), linear-gradient(0deg, #fff, #fff)) and (-webkit-mask-clip: content-box, border-box))) and ((mask-composite: exclude) or (-webkit-mask-composite: xor)){.stories-slide--1vMTY._has-border-gradient-color--EWPsK{border-color:rgba(0,0,0,0)}.stories-slide--1vMTY._has-border-gradient-color--EWPsK:before{content:"";position:absolute;border-radius:inherit;box-sizing:border-box;-webkit-mask-composite:xor;mask-composite:exclude;padding:var(--storiesListBorderNotReadWidth, 2px);top:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);right:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);bottom:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);left:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);background:var(--storiesBorderNotReadGradientColor, transparent);-webkit-mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);-webkit-mask-clip:content-box,border-box;mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);mask-clip:content-box,border-box}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._is-read--NWzFU{border-color:rgba(0,0,0,0)}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._is-read--NWzFU:before{padding:var(--storiesListBorderReadWidth, 2px);top:calc(var(--storiesListBorderReadWidth, 2px)*-1);right:calc(var(--storiesListBorderReadWidth, 2px)*-1);bottom:calc(var(--storiesListBorderReadWidth, 2px)*-1);left:calc(var(--storiesListBorderReadWidth, 2px)*-1);background:var(--storiesBorderReadGradientColor, transparent);-webkit-mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);-webkit-mask-clip:content-box,border-box;mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);mask-clip:content-box,border-box}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._favorite-cell--Ii5\\+C{border-color:rgba(0,0,0,0)}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._favorite-cell--Ii5\\+C:before{padding:var(--storiesListBorderNotReadWidth, 2px);top:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);right:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);bottom:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);left:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);background:var(--storiesListCardFavoriteGradientColor, transparent);-webkit-mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);-webkit-mask-clip:content-box,border-box;mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);mask-clip:content-box,border-box}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._ugc-cell--Om\\+Zg{border-color:rgba(0,0,0,0)}.stories-slide--1vMTY._has-border-gradient-color--EWPsK._ugc-cell--Om\\+Zg:before{padding:var(--storiesListBorderNotReadWidth, 2px);top:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);right:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);bottom:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);left:calc(var(--storiesListBorderNotReadWidth, 2px)*-1);background:var(--storiesListCardUgcGradientColor, transparent);-webkit-mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);-webkit-mask-clip:content-box,border-box;mask-image:linear-gradient(0deg, #fff, #fff),linear-gradient(0deg, #fff, #fff);mask-clip:content-box,border-box}}',""]),o.locals={"stories-slide-wrapper":"stories-slide-wrapper--Eu4FL","stories-slide":"stories-slide--1vMTY","_format-quad":"_format-quad--7Qf7n","_format-rectangle":"_format-rectangle--HFYDz","stories-slide-image":"stories-slide-image--zgQfM","stories-slide-image__image":"stories-slide-image__image---oTSg","stories-slide__mask":"stories-slide__mask--Ber5G","stories-slide__content":"stories-slide__content--LjEaM","_is-read":"_is-read--NWzFU",isTitleCardOutsideTop:"isTitleCardOutsideTop--2qKPA",isTitleCardOutsideBottom:"isTitleCardOutsideBottom--EcZG0","stories-slide__inner":"stories-slide__inner--HaGAt","_background-color-black":"_background-color-black--8BJrr","_background-color-white":"_background-color-white--0gTtw","_background-color-red":"_background-color-red--VMW-4","_background-color-yellow":"_background-color-yellow--csphQ","_background-color-green":"_background-color-green--lCytC","_background-color-violet":"_background-color-violet--ugACH","_background-color-blue":"_background-color-blue--6LiA6","_background-color-grey":"_background-color-grey--DegqH","_background-color-black-gradient":"_background-color-black-gradient--a-37K","_background-color-white-gradient":"_background-color-white-gradient--Kj+jG","_background-color-red-gradient":"_background-color-red-gradient--Un+pH","_background-color-yellow-gradient":"_background-color-yellow-gradient--B-6yy","_background-color-green-gradient":"_background-color-green-gradient--kA2Ff","_background-color-violet-gradient":"_background-color-violet-gradient--8DGOP","_background-color-blue-gradient":"_background-color-blue-gradient--NzQAx","_background-color-grey-gradient":"_background-color-grey-gradient--GOcun","stories-slide-image__wrap":"stories-slide-image__wrap--rugpz",_mode_list:"_mode_list--2wqnv","ugc-card-cell":"ugc-card-cell--YZJvg","video-loaded":"video-loaded--qoXRV","_ugc-cell":"_ugc-cell--Om+Zg",__position_outside_top:"__position_outside_top--GVCj7",__position_outside_bottom:"__position_outside_bottom--hSPHX",clamp:"clamp--bYx4q","stories-slide__title":"stories-slide__title--19c02","align-left":"align-left--DFBdw","align-center":"align-center--NBBJ8","align-right":"align-right--hL1z8","_format-circle":"_format-circle--4OAh7","_favorite-cell":"_favorite-cell--Ii5+C","favorite-images-wrapper":"favorite-images-wrapper--5OA4B","_has-drop-shadow":"_has-drop-shadow--nD8LL","_has-card-svg-mask":"_has-card-svg-mask--1mjGW","card-overlay-svg-mask":"card-overlay-svg-mask--u8qsW","_has-border-gradient-color":"_has-border-gradient-color--EWPsK"};const n=o},4037:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(935),o=r.n(i)()((function(e){return e[1]}));o.push([e.id,".stories-list-controls--TJdI1{pointer-events:none}.stories-list-controls--TJdI1 .control-left--PZc5K,.stories-list-controls--TJdI1 .control-right--wMPBr,.stories-list-controls--TJdI1 .control-top--JEQNd,.stories-list-controls--TJdI1 .control-bottom--9VDBN{cursor:pointer;position:absolute;background-color:var(--storiesListControlsBackgroundColor, white);border-radius:50%;z-index:10;height:var(--storiesListControlsSize);width:var(--storiesListControlsSize);top:50%;display:flex;justify-content:center;align-items:center;pointer-events:all}.stories-list-controls--TJdI1 .control-icon--UhwL\\+{width:7px;height:12px;background-color:var(--storiesListControlsColor, black)}.stories-list-controls--TJdI1 .control-left--PZc5K{left:0;transform:translateY(-50%)}.stories-list-controls--TJdI1 .control-top--JEQNd{top:var(--storiesListTopPadding, 0);left:50%;transform:translate3d(-50%, 0, 0) rotate(90deg)}.stories-list-controls--TJdI1 .control-left--PZc5K .control-icon--UhwL\\+,.stories-list-controls--TJdI1 .control-top--JEQNd .control-icon--UhwL\\+{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 11L1 6L6 1' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 11L1 6L6 1' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}.stories-list-controls--TJdI1 .control-right--wMPBr{right:0;transform:translateY(-50%)}.stories-list-controls--TJdI1 .control-bottom--9VDBN{top:auto;bottom:var(--storiesListBottomPadding, 0);right:50%;transform:translate3d(50%, 0, 0) rotate(90deg)}.stories-list-controls--TJdI1 .control-right--wMPBr .control-icon--UhwL\\+,.stories-list-controls--TJdI1 .control-bottom--9VDBN .control-icon--UhwL\\+{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11L6 6L1 1' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11L6 6L1 1' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}",""]),o.locals={"stories-list-controls":"stories-list-controls--TJdI1","control-left":"control-left--PZc5K","control-right":"control-right--wMPBr","control-top":"control-top--JEQNd","control-bottom":"control-bottom--9VDBN","control-icon":"control-icon--UhwL+"};const n=o},6599:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(935),o=r.n(i)()((function(e){return e[1]}));o.push([e.id,"h3{margin:0}.stories-list-wrapper--WujCQ{background-color:var(--background-color, transparent);height:auto;padding:0;position:relative}.stories-list-wrapper--WujCQ.mode-desktop--hEfDW.with-list-controls--FUmt7{position:relative}.stories-list--rPnFQ{position:relative;overflow:visible}@media(min-width: 767.99px){.stories-list--rPnFQ{overflow:hidden}}.stories-list__actions--NHHiK{position:absolute;right:0;top:0}.stories-list__viewport--pi1K8{overflow:hidden;height:auto}.stories-list__viewport--pi1K8:not(.mode-desktop--hEfDW){display:flex}.stories-list__viewport-inner--jaeLt{display:flex;flex-wrap:nowrap;overflow-x:scroll;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-top:var(--storiesListTopPadding, 0);padding-bottom:var(--storiesListBottomPadding, 0);box-sizing:content-box}.stories-list__viewport-inner--jaeLt::-webkit-scrollbar{display:none}.stories-list__viewport-inner--jaeLt.mode-desktop--hEfDW{scroll-behavior:unset;cursor:grab}.stories-list__viewport-inner--jaeLt.mode-desktop--hEfDW.isVerticalDirection--EBTTg{flex-flow:row wrap;overflow-y:scroll}.stories-list__viewport-inner--jaeLt.align-center---OAy0{margin-left:auto;margin-right:auto}.stories-list__viewport-inner--jaeLt.align-left--uuemX{margin-right:auto}.stories-list__viewport-inner--jaeLt.align-right--0IQA6{margin-left:auto}.stories-list__viewport-inner--jaeLt.isTitleCardOutsideTop--Kw1jl{align-items:flex-end}.stories-list__viewport-inner--jaeLt.isTitleCardOutsideBottom--umr8u{align-items:flex-start}",""]),o.locals={"stories-list-wrapper":"stories-list-wrapper--WujCQ","mode-desktop":"mode-desktop--hEfDW","with-list-controls":"with-list-controls--FUmt7","stories-list":"stories-list--rPnFQ","stories-list__actions":"stories-list__actions--NHHiK","stories-list__viewport":"stories-list__viewport--pi1K8","stories-list__viewport-inner":"stories-list__viewport-inner--jaeLt",isVerticalDirection:"isVerticalDirection--EBTTg","align-center":"align-center---OAy0","align-left":"align-left--uuemX","align-right":"align-right--0IQA6",isTitleCardOutsideTop:"isTitleCardOutsideTop--Kw1jl",isTitleCardOutsideBottom:"isTitleCardOutsideBottom--umr8u"};const n=o},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var n=0;n<this.length;n++){var s=this[n][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);i&&o[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),t.push(l))}},t}},2743:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return i(e,r)}))}function n(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var o={};return r.isMergeableObject(e)&&n(e).forEach((function(t){o[t]=i(e[t],r)})),n(t).forEach((function(n){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,n)||(s(e,n)&&r.isMergeableObject(t[n])?o[n]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(n,r)(e[n],t[n],r):o[n]=i(t[n],r))})),o}function l(e,r,n){(n=n||{}).arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||t,n.cloneUnlessOtherwiseSpecified=i;var s=Array.isArray(r);return s===Array.isArray(e)?s?n.arrayMerge(e,r,n):a(e,r,n):i(r,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var d=l;e.exports=d},46:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function n(){n.init.call(this)}e.exports=n,e.exports.once=function(e,t){return new Promise((function(r,i){function o(r){e.removeListener(t,n),i(r)}function n(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}g(e,t,n,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,o,{once:!0})}))},n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?n.defaultMaxListeners:e._maxListeners}function d(e,t,r,i){var o,n,s,d;if(a(r),void 0===(n=e._events)?(n=e._events=Object.create(null),e._eventsCount=0):(void 0!==n.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),n=e._events),s=n[t]),void 0===s)s=n[t]=r,++e._eventsCount;else if("function"==typeof s?s=n[t]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(o=l(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,d=c,console&&console.warn&&console.warn(d)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=c.bind(i);return o.listener=r,i.wrapFn=o,o}function p(e,t,r){var i=e._events;if(void 0===i)return[];var o=i[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):h(o,o.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function g(e,t,r,i){if("function"==typeof e.on)i.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(n){i.once&&e.removeEventListener(t,o),r(n)}))}}Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),n.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},n.prototype.getMaxListeners=function(){return l(this)},n.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,n=this._events;if(void 0!==n)o=o&&void 0===n.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=n[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var d=l.length,c=h(l,d);for(r=0;r<d;++r)i(c[r],this,t)}return!0},n.prototype.addListener=function(e,t){return d(this,e,t,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(e,t){return d(this,e,t,!0)},n.prototype.once=function(e,t){return a(t),this.on(e,u(this,e,t)),this},n.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,u(this,e,t)),this},n.prototype.removeListener=function(e,t){var r,i,o,n,s;if(a(t),void 0===(i=this._events))return this;if(void 0===(r=i[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,n=r.length-1;n>=0;n--)if(r[n]===t||r[n].listener===t){s=r[n].listener,o=n;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(i[e]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(e){var t,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,n=Object.keys(r);for(i=0;i<n.length;++i)"removeListener"!==(o=n[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},n.prototype.listeners=function(e){return p(this,e,!0)},n.prototype.rawListeners=function(e){return p(this,e,!1)},n.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},n.prototype.listenerCount=f,n.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5985:(e,t,r)=>{"use strict";var i=r(524),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?s:a[e.$$typeof]||o}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=s;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,i){if("string"!=typeof r){if(h){var o=f(r);o&&o!==h&&e(t,o,i)}var s=c(r);u&&(s=s.concat(u(r)));for(var a=l(t),g=l(r),v=0;v<s.length;++v){var m=s[v];if(!(n[m]||i&&i[m]||g&&g[m]||a&&a[m])){var y=p(r,m);try{d(t,m,y)}catch(e){}}}}return t}},3103:(e,t,r)=>{var i=r(4715)(r(8942),"DataView");e.exports=i},5098:(e,t,r)=>{var i=r(3305),o=r(9361),n=r(1112),s=r(5276),a=r(7452);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=n,l.prototype.has=s,l.prototype.set=a,e.exports=l},1386:(e,t,r)=>{var i=r(2393),o=r(2049),n=r(7144),s=r(5071),a=r(3964);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=n,l.prototype.has=s,l.prototype.set=a,e.exports=l},9770:(e,t,r)=>{var i=r(4715)(r(8942),"Map");e.exports=i},8250:(e,t,r)=>{var i=r(9753),o=r(5681),n=r(88),s=r(4732),a=r(9068);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=n,l.prototype.has=s,l.prototype.set=a,e.exports=l},9413:(e,t,r)=>{var i=r(4715)(r(8942),"Promise");e.exports=i},4512:(e,t,r)=>{var i=r(4715)(r(8942),"Set");e.exports=i},3212:(e,t,r)=>{var i=r(8250),o=r(1877),n=r(8006);function s(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new i;++t<r;)this.add(e[t])}s.prototype.add=s.prototype.push=o,s.prototype.has=n,e.exports=s},1340:(e,t,r)=>{var i=r(1386),o=r(4103),n=r(1779),s=r(4162),a=r(7462),l=r(6638);function d(e){var t=this.__data__=new i(e);this.size=t.size}d.prototype.clear=o,d.prototype.delete=n,d.prototype.get=s,d.prototype.has=a,d.prototype.set=l,e.exports=d},5650:(e,t,r)=>{var i=r(8942).Symbol;e.exports=i},1623:(e,t,r)=>{var i=r(8942).Uint8Array;e.exports=i},9270:(e,t,r)=>{var i=r(4715)(r(8942),"WeakMap");e.exports=i},6912:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},9756:(e,t,r)=>{var i=r(2478);e.exports=function(e,t){return!!(null==e?0:e.length)&&i(e,t,0)>-1}},3316:e=>{e.exports=function(e,t,r){for(var i=-1,o=null==e?0:e.length;++i<o;)if(r(t,e[i]))return!0;return!1}},358:(e,t,r)=>{var i=r(6137),o=r(3283),n=r(3142),s=r(5853),a=r(9632),l=r(8666),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=n(e),c=!r&&o(e),u=!r&&!c&&s(e),p=!r&&!c&&!u&&l(e),f=r||c||u||p,h=f?i(e.length,String):[],g=h.length;for(var v in e)!t&&!d.call(e,v)||f&&("length"==v||u&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,g))||h.push(v);return h}},1129:e=>{e.exports=function(e,t){for(var r=-1,i=t.length,o=e.length;++r<i;)e[o+r]=t[r];return e}},4810:(e,t,r)=>{var i=r(7073),o=r(6285);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&i(e,t,r)}},3422:(e,t,r)=>{var i=r(7073),o=r(6285),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var s=e[t];n.call(e,t)&&o(s,r)&&(void 0!==r||t in e)||i(e,t,r)}},7034:(e,t,r)=>{var i=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(i(e[r][0],t))return r;return-1}},7073:(e,t,r)=>{var i=r(2532);e.exports=function(e,t,r){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},9747:(e,t,r)=>{var i=r(1580),o=Object.create,n=function(){function e(){}return function(t){if(!i(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=n},7250:e=>{e.exports=function(e,t,r,i){for(var o=e.length,n=r+(i?1:-1);i?n--:++n<o;)if(t(e[n],n,e))return n;return-1}},313:(e,t,r)=>{var i=r(1129),o=r(714);e.exports=function e(t,r,n,s,a){var l=-1,d=t.length;for(n||(n=o),a||(a=[]);++l<d;){var c=t[l];r>0&&n(c)?r>1?e(c,r-1,n,s,a):i(a,c):s||(a[a.length]=c)}return a}},5636:(e,t,r)=>{var i=r(6596)();e.exports=i},7379:(e,t,r)=>{var i=r(5650),o=r(8870),n=r(9005),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):n(e)}},2478:(e,t,r)=>{var i=r(7250),o=r(9454),n=r(7706);e.exports=function(e,t,r){return t==t?n(e,t,r):i(e,o,r)}},6027:(e,t,r)=>{var i=r(7379),o=r(547);e.exports=function(e){return o(e)&&"[object Arguments]"==i(e)}},9454:e=>{e.exports=function(e){return e!=e}},9624:(e,t,r)=>{var i=r(3655),o=r(4759),n=r(1580),s=r(4066),a=/^\[object .+?Constructor\]$/,l=Function.prototype,d=Object.prototype,c=l.toString,u=d.hasOwnProperty,p=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!n(e)||o(e))&&(i(e)?p:a).test(s(e))}},674:(e,t,r)=>{var i=r(7379),o=r(5387),n=r(547),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return n(e)&&o(e.length)&&!!s[i(e)]}},195:(e,t,r)=>{var i=r(4882),o=r(8121),n=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return o(e);var t=[];for(var r in Object(e))n.call(e,r)&&"constructor"!=r&&t.push(r);return t}},7200:(e,t,r)=>{var i=r(1580),o=r(4882),n=r(8546),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return n(e);var t=o(e),r=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&r.push(a);return r}},91:(e,t,r)=>{var i=r(1340),o=r(4810),n=r(5636),s=r(6885),a=r(1580),l=r(5288),d=r(8763);e.exports=function e(t,r,c,u,p){t!==r&&n(r,(function(n,l){if(p||(p=new i),a(n))s(t,r,l,c,e,u,p);else{var f=u?u(d(t,l),n,l+"",t,r,p):void 0;void 0===f&&(f=n),o(t,l,f)}}),l)}},6885:(e,t,r)=>{var i=r(4810),o=r(7099),n=r(2264),s=r(4354),a=r(5964),l=r(3283),d=r(3142),c=r(5406),u=r(5853),p=r(3655),f=r(1580),h=r(8360),g=r(8666),v=r(8763),m=r(4207);e.exports=function(e,t,r,y,_,b,w){var S=v(e,r),C=v(t,r),k=w.get(C);if(k)i(e,r,k);else{var O=b?b(S,C,r+"",e,t,w):void 0,L=void 0===O;if(L){var x=d(C),A=!x&&u(C),E=!x&&!A&&g(C);O=C,x||A||E?d(S)?O=S:c(S)?O=s(S):A?(L=!1,O=o(C,!0)):E?(L=!1,O=n(C,!0)):O=[]:h(C)||l(C)?(O=S,l(S)?O=m(S):f(S)&&!p(S)||(O=a(C))):L=!1}L&&(w.set(C,O),_(O,C,y,b,w),w.delete(C)),i(e,r,O)}}},3945:(e,t,r)=>{var i=r(2053),o=r(5234),n=r(796);e.exports=function(e,t){return n(o(e,t,i),e+"")}},7403:(e,t,r)=>{var i=r(2619),o=r(2532),n=r(2053),s=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:n;e.exports=s},6137:e=>{e.exports=function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}},6403:(e,t,r)=>{var i=r(2945),o=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(o,""):e}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5630:(e,t,r)=>{var i=r(3212),o=r(9756),n=r(3316),s=r(5568),a=r(6208),l=r(9828);e.exports=function(e,t,r){var d=-1,c=o,u=e.length,p=!0,f=[],h=f;if(r)p=!1,c=n;else if(u>=200){var g=t?null:a(e);if(g)return l(g);p=!1,c=s,h=new i}else h=t?[]:f;e:for(;++d<u;){var v=e[d],m=t?t(v):v;if(v=r||0!==v?v:0,p&&m==m){for(var y=h.length;y--;)if(h[y]===m)continue e;t&&h.push(m),f.push(v)}else c(h,m,r)||(h!==f&&h.push(m),f.push(v))}return f}},5568:e=>{e.exports=function(e,t){return e.has(t)}},8898:(e,t,r)=>{var i=r(1623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},7099:(e,t,r)=>{e=r.nmd(e);var i=r(8942),o=t&&!t.nodeType&&t,n=o&&e&&!e.nodeType&&e,s=n&&n.exports===o?i.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,i=a?a(r):new e.constructor(r);return e.copy(i),i}},2264:(e,t,r)=>{var i=r(8898);e.exports=function(e,t){var r=t?i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},4354:e=>{e.exports=function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}},9032:(e,t,r)=>{var i=r(3422),o=r(7073);e.exports=function(e,t,r,n){var s=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var d=t[a],c=n?n(r[d],e[d],d,r,e):void 0;void 0===c&&(c=e[d]),s?o(r,d,c):i(r,d,c)}return r}},1950:(e,t,r)=>{var i=r(8942)["__core-js_shared__"];e.exports=i},7848:(e,t,r)=>{var i=r(3945),o=r(4535);e.exports=function(e){return i((function(t,r){var i=-1,n=r.length,s=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(n--,s):void 0,a&&o(r[0],r[1],a)&&(s=n<3?void 0:s,n=1),t=Object(t);++i<n;){var l=r[i];l&&e(t,l,i,s)}return t}))}},6596:e=>{e.exports=function(e){return function(t,r,i){for(var o=-1,n=Object(t),s=i(t),a=s.length;a--;){var l=s[e?a:++o];if(!1===r(n[l],l,n))break}return t}}},6208:(e,t,r)=>{var i=r(4512),o=r(9071),n=r(9828),s=i&&1/n(new i([,-0]))[1]==1/0?function(e){return new i(e)}:o;e.exports=s},2532:(e,t,r)=>{var i=r(4715),o=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},4967:(e,t,r)=>{var i="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=i},4700:(e,t,r)=>{var i=r(9067);e.exports=function(e,t){var r=e.__data__;return i(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var i=r(9624),o=r(155);e.exports=function(e,t){var r=o(e,t);return i(r)?r:void 0}},4784:(e,t,r)=>{var i=r(3766)(Object.getPrototypeOf,Object);e.exports=i},8870:(e,t,r)=>{var i=r(5650),o=Object.prototype,n=o.hasOwnProperty,s=o.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=n.call(e,a),r=e[a];try{e[a]=void 0;var i=!0}catch(e){}var o=s.call(e);return i&&(t?e[a]=r:delete e[a]),o}},8486:(e,t,r)=>{var i=r(3103),o=r(9770),n=r(9413),s=r(4512),a=r(9270),l=r(7379),d=r(4066),c="[object Map]",u="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=d(i),v=d(o),m=d(n),y=d(s),_=d(a),b=l;(i&&b(new i(new ArrayBuffer(1)))!=h||o&&b(new o)!=c||n&&b(n.resolve())!=u||s&&b(new s)!=p||a&&b(new a)!=f)&&(b=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,i=r?d(r):"";if(i)switch(i){case g:return h;case v:return c;case m:return u;case y:return p;case _:return f}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var i=r(4497);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var i=r(4497),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var i=r(4497),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:o.call(t,e)}},7452:(e,t,r)=>{var i=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},5964:(e,t,r)=>{var i=r(9747),o=r(4784),n=r(4882);e.exports=function(e){return"function"!=typeof e.constructor||n(e)?{}:i(o(e))}},714:(e,t,r)=>{var i=r(5650),o=r(3283),n=r(3142),s=i?i.isConcatSpreadable:void 0;e.exports=function(e){return n(e)||o(e)||!!(s&&e&&e[s])}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var i=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<r}},4535:(e,t,r)=>{var i=r(6285),o=r(6529),n=r(9632),s=r(1580);e.exports=function(e,t,r){if(!s(r))return!1;var a=typeof t;return!!("number"==a?o(r)&&n(t,r.length):"string"==a&&t in r)&&i(r[t],e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var i,o=r(1950),n=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!n&&n in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var i=r(7034),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=i(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var i=r(7034);e.exports=function(e){var t=this.__data__,r=i(t,e);return r<0?void 0:t[r][1]}},5071:(e,t,r)=>{var i=r(7034);e.exports=function(e){return i(this.__data__,e)>-1}},3964:(e,t,r)=>{var i=r(7034);e.exports=function(e,t){var r=this.__data__,o=i(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},9753:(e,t,r)=>{var i=r(5098),o=r(1386),n=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(n||o),string:new i}}},5681:(e,t,r)=>{var i=r(4700);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var i=r(4700);e.exports=function(e){return i(this,e).get(e)}},4732:(e,t,r)=>{var i=r(4700);e.exports=function(e){return i(this,e).has(e)}},9068:(e,t,r)=>{var i=r(4700);e.exports=function(e,t){var r=i(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},4497:(e,t,r)=>{var i=r(4715)(Object,"create");e.exports=i},8121:(e,t,r)=>{var i=r(3766)(Object.keys,Object);e.exports=i},8546:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},2306:(e,t,r)=>{e=r.nmd(e);var i=r(4967),o=t&&!t.nodeType&&t,n=o&&e&&!e.nodeType&&e,s=n&&n.exports===o&&i.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5234:(e,t,r)=>{var i=r(6912),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,a=o(n.length-t,0),l=Array(a);++s<a;)l[s]=n[t+s];s=-1;for(var d=Array(t+1);++s<t;)d[s]=n[s];return d[t]=r(l),i(e,this,d)}}},8942:(e,t,r)=>{var i=r(4967),o="object"==typeof self&&self&&self.Object===Object&&self,n=i||o||Function("return this")();e.exports=n},8763:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},9828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},796:(e,t,r)=>{var i=r(7403),o=r(8554)(i);e.exports=o},8554:e=>{var t=Date.now;e.exports=function(e){var r=0,i=0;return function(){var o=t(),n=16-(o-i);if(i=o,n>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},4103:(e,t,r)=>{var i=r(1386);e.exports=function(){this.__data__=new i,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var i=r(1386),o=r(9770),n=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof i){var s=r.__data__;if(!o||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new n(s)}return r.set(e,t),this.size=r.size,this}},7706:e=>{e.exports=function(e,t,r){for(var i=r-1,o=e.length;++i<o;)if(e[i]===t)return i;return-1}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2945:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},4871:(e,t,r)=>{var i=r(1129),o=r(313),n=r(4354),s=r(3142);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return i(s(r)?n(r):[r],o(t,1))}},2619:e=>{e.exports=function(e){return function(){return e}}},2784:(e,t,r)=>{var i=r(1580),o=r(4495),n=r(6131),s=Math.max,a=Math.min;e.exports=function(e,t,r){var l,d,c,u,p,f,h=0,g=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=l,i=d;return l=d=void 0,h=t,u=e.apply(i,r)}function _(e){var r=e-f;return void 0===f||r>=t||r<0||v&&e-h>=c}function b(){var e=o();if(_(e))return w(e);p=setTimeout(b,function(e){var r=t-(e-f);return v?a(r,c-(e-h)):r}(e))}function w(e){return p=void 0,m&&l?y(e):(l=d=void 0,u)}function S(){var e=o(),r=_(e);if(l=arguments,d=this,f=e,r){if(void 0===p)return function(e){return h=e,p=setTimeout(b,t),g?y(e):u}(f);if(v)return clearTimeout(p),p=setTimeout(b,t),y(f)}return void 0===p&&(p=setTimeout(b,t)),u}return t=n(t)||0,i(r)&&(g=!!r.leading,c=(v="maxWait"in r)?s(n(r.maxWait)||0,t):c,m="trailing"in r?!!r.trailing:m),S.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=d=p=void 0},S.flush=function(){return void 0===p?u:w(o())},S}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3981:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},2053:e=>{e.exports=function(e){return e}},3283:(e,t,r)=>{var i=r(6027),o=r(547),n=Object.prototype,s=n.hasOwnProperty,a=n.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var i=r(3655),o=r(5387);e.exports=function(e){return null!=e&&o(e.length)&&!i(e)}},5406:(e,t,r)=>{var i=r(6529),o=r(547);e.exports=function(e){return o(e)&&i(e)}},5853:(e,t,r)=>{e=r.nmd(e);var i=r(8942),o=r(4772),n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,a=s&&s.exports===n?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;e.exports=l},3514:(e,t,r)=>{var i=r(195),o=r(8486),n=r(3283),s=r(3142),a=r(6529),l=r(5853),d=r(4882),c=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||n(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(d(e))return!i(e).length;for(var r in e)if(u.call(e,r))return!1;return!0}},3655:(e,t,r)=>{var i=r(7379),o=r(1580);e.exports=function(e){if(!o(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},986:(e,t,r)=>{var i=r(7379),o=r(547);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==i(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8360:(e,t,r)=>{var i=r(7379),o=r(4784),n=r(547),s=Function.prototype,a=Object.prototype,l=s.toString,d=a.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!n(e)||"[object Object]"!=i(e))return!1;var t=o(e);if(null===t)return!0;var r=d.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==c}},8138:(e,t,r)=>{var i=r(7379),o=r(3142),n=r(547);e.exports=function(e){return"string"==typeof e||!o(e)&&n(e)&&"[object String]"==i(e)}},1187:(e,t,r)=>{var i=r(7379),o=r(547);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==i(e)}},8666:(e,t,r)=>{var i=r(674),o=r(9460),n=r(2306),s=n&&n.isTypedArray,a=s?o(s):i;e.exports=a},5288:(e,t,r)=>{var i=r(358),o=r(7200),n=r(6529);e.exports=function(e){return n(e)?i(e,!0):o(e)}},2451:(e,t,r)=>{var i=r(91),o=r(7848)((function(e,t,r){i(e,t,r)}));e.exports=o},9071:e=>{e.exports=function(){}},4495:(e,t,r)=>{var i=r(8942);e.exports=function(){return i.Date.now()}},4772:e=>{e.exports=function(){return!1}},6131:(e,t,r)=>{var i=r(6403),o=r(1580),n=r(1187),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var r=a.test(e);return r||l.test(e)?d(e.slice(2),r?2:8):s.test(e)?NaN:+e}},4207:(e,t,r)=>{var i=r(9032),o=r(5288);e.exports=function(e){return i(e,o(e))}},2438:(e,t,r)=>{var i=r(5630);e.exports=function(e){return e&&e.length?i(e):[]}},1513:e=>{"use strict";
10
2
  /*
11
3
  object-assign
12
4
  (c) Sindre Sorhus
13
5
  @license MIT
14
- */var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var d in o=Object(arguments[l]))r.call(o,d)&&(a[d]=o[d]);if(t){s=t(o);for(var c=0;c<s.length;c++)i.call(o,s[c])&&(a[s[c]]=o[s[c]])}}return a}},4855:function(e,t,r){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)};t.__esModule=!0;var n=r(6689);t.default=function(e){var t=n.splitBySpaces(e),r=t.lastIndexOf("!important"),o=-1!==r;o&&t.splice(r,1);var s=t.length;if(s<1||s>4)throw new Error("Cannot parse "+s+" sides");var a=t[0],l=t.slice(1);return function(e,t,r,n){void 0===t&&(t=e);void 0===r&&(r=e);void 0===n&&(n=t);return i({bottom:r,left:n,right:t,top:e},o?{important:o}:{})}.apply(void 0,[a].concat(l))},t.default.default=e.exports=t.default},320:(e,t)=>{"use strict";
6
+ */var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var n,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var d in n=Object(arguments[l]))r.call(n,d)&&(a[d]=n[d]);if(t){s=t(n);for(var c=0;c<s.length;c++)i.call(n,s[c])&&(a[s[c]]=n[s[c]])}}return a}},4855:function(e,t,r){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};t.__esModule=!0;var o=r(6689);t.default=function(e){var t=o.splitBySpaces(e),r=t.lastIndexOf("!important"),n=-1!==r;n&&t.splice(r,1);var s=t.length;if(s<1||s>4)throw new Error("Cannot parse "+s+" sides");var a=t[0],l=t.slice(1);return function(e,t,r,o){void 0===t&&(t=e);void 0===r&&(r=e);void 0===o&&(o=t);return i({bottom:r,left:o,right:t,top:e},n?{important:n}:{})}.apply(void 0,[a].concat(l))},t.default.default=e.exports=t.default},320:(e,t)=>{"use strict";
15
7
  /** @license React v16.13.1
16
8
  * react-is.production.min.js
17
9
  *
@@ -19,7 +11,7 @@ object-assign
19
11
  *
20
12
  * This source code is licensed under the MIT license found in the
21
13
  * LICENSE file in the root directory of this source tree.
22
- */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,u=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case c:case u:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case d:case p:case v:case g:case l:return e;default:return t}}case n:return t}}}function S(e){return w(e)===u}t.AsyncMode=c,t.ConcurrentMode=u,t.ContextConsumer=d,t.ContextProvider=l,t.Element=i,t.ForwardRef=p,t.Fragment=o,t.Lazy=v,t.Memo=g,t.Portal=n,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===d},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===n},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===l||e.$$typeof===d||e.$$typeof===p||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===m)},t.typeOf=w},524:(e,t,r)=>{"use strict";e.exports=r(320)},3335:(e,t,r)=>{"use strict";
14
+ */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,u=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case c:case u:case n:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case d:case p:case v:case g:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===u}t.AsyncMode=c,t.ConcurrentMode=u,t.ContextConsumer=d,t.ContextProvider=l,t.Element=i,t.ForwardRef=p,t.Fragment=n,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===d},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===n},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===l||e.$$typeof===d||e.$$typeof===p||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===m)},t.typeOf=w},524:(e,t,r)=>{"use strict";e.exports=r(320)},3335:(e,t,r)=>{"use strict";
23
15
  /** @license React v17.0.2
24
16
  * react-jsx-runtime.production.min.js
25
17
  *
@@ -27,19 +19,19 @@ object-assign
27
19
  *
28
20
  * This source code is licensed under the MIT license found in the
29
21
  * LICENSE file in the root directory of this source tree.
30
- */r(1513);var i=r(9155),n=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;n=o("react.element"),t.Fragment=o("react.fragment")}var s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,r){var i,o={},d=null,c=null;for(i in void 0!==r&&(d=""+r),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,i)&&!l.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===o[i]&&(o[i]=t[i]);return{$$typeof:n,type:e,key:d,ref:c,props:o,_owner:s.current}}t.jsx=d,t.jsxs=d},1085:(e,t,r)=>{"use strict";e.exports=r(3335)},2591:(e,t,r)=>{"use strict";var i,n=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),s=[];function a(e){for(var t=-1,r=0;r<s.length;r++)if(s[r].identifier===e){t=r;break}return t}function l(e,t){for(var r={},i=[],n=0;n<e.length;n++){var o=e[n],l=t.base?o[0]+t.base:o[0],d=r[l]||0,c="".concat(l," ").concat(d);r[l]=d+1;var u=a(c),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==u?(s[u].references++,s[u].updater(p)):s.push({identifier:c,updater:v(p,t),references:1}),i.push(c)}return i}function d(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var n=r.nc;n&&(i.nonce=n)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=o(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function p(e,t,r,i){var n=r?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=u(t,n);else{var o=document.createTextNode(n),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function f(e,t,r){var i=r.css,n=r.media,o=r.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,g=0;function v(e,t){var r,i,n;if(t.singleton){var o=g++;r=h||(h=d(t)),i=p.bind(null,r,o,!1),n=p.bind(null,r,o,!0)}else r=d(t),i=f.bind(null,r,t),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else n()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=n());var r=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<r.length;i++){var n=a(r[i]);s[n].references--}for(var o=l(e,t),d=0;d<r.length;d++){var c=a(r[d]);0===s[c].references&&(s[c].updater(),s.splice(c,1))}r=o}}}},6292:(e,t,r)=>{"use strict";r.d(t,{eJ:()=>s,gP:()=>n});var i=r(7791);function n(e){let t=window.isSecureContext;return void 0===t&&"https:"===window.location.protocol&&(t=!0),t?e:e.replace(/^https:\/\//,"http://")}function o(e){return e.map((e=>function(e){var t,r,o;if(!e.url)return null;let s={"font-family":null!==(t=e.family)&&void 0!==t?t:"normal",src:`url('${n(String(e.url))}')`,"font-style":null!==(r=e.style)&&void 0!==r?r:"normal","font-weight":null!==(o=e.weight)&&void 0!==o?o:"normal"};e.title&&(s.src+=`, local('${e.title}')`);return`@font-face {${(0,i.ky)(s)}}\n`}(e))).filter(Boolean).join("")}function s(e){"fonts"in document?e.forEach((e=>{const t=new FontFace(e.family,`url(${e.url})`,{style:e.style,weight:e.weight,display:"block"});document.fonts.add&&document.fonts.add(t),t.load()})):function(e){const t=o(e);if(null!=t){const e="stories-font-style";let r=document.getElementById(e);null===r?(r=document.createElement("style"),r.type="text/css",r.id=e,r.attributes.setNamedItem(document.createAttribute("scoped")),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t)),document.body.appendChild(r)):r.styleSheet?r.styleSheet.cssText=t:(r.textContent="",r.appendChild(document.createTextNode(t)))}}(e)}},9782:(e,t,r)=>{"use strict";r.d(t,{C:()=>i,F:()=>o});const i={baseUrl:"https://sdk.inappstory.ru",apiUrl:"https://api.inappstory.ru",faviconApiUrl:"https://favicon.inappstory.ru"};function n(e){if(e.length>32)try{const t=function(e){const t=(e=e.replace(new RegExp("-","g"),"+").replace(new RegExp("_","g"),"/")).length;return e=function(e,t,r){return void 0===t?e:t.length>=e.length?t:r?(e+t).slice(-e.length):(t+e).substring(0,e.length)}(new Array(t%4).fill("=").join(""),e,!1),window.atob(e)}(e),r=t.charCodeAt(13);if(r>0){let e=t.substr(14,r);e=e.replace(/\0+$/,"");const i="{QQN{xuV?1Dv16j3";let n=i,o=0;for(;n.length<r;)n+=i[o],o++,o===i.length&&(o=0);let s="";for(let t=0;t<r;t++)s+=String.fromCharCode(e.charCodeAt(t)^n.charCodeAt(t));return new URL(`https://${s}`).host}}catch(e){console.error(e)}return null}function o(e){const t=n(e);if(null!=t){const e=t.split(".").slice(1);i.baseUrl=`https://${["sdk",...e].join(".")}`,i.faviconApiUrl=`https://${["favicon",...e].join(".")}`,i.apiUrl=`https://${t}`}}},3128:(e,t,r)=>{"use strict";r.d(t,{Ue:()=>u,Tl:()=>n,YB:()=>p,JG:()=>o,qR:()=>d,rN:()=>c,Fn:()=>l,ib:()=>s,by:()=>a});var i=r(1810);const n=(0,i.y$)({apiKey:"",disableStatistic:!1}),o=(0,i.lh)();n.on(o,((e,t)=>t));const s=(0,i.lh)();n.on(s,((e,{tags:t})=>Object.assign(Object.assign({},e),{tags:t})));const a=(0,i.lh)();n.on(a,((e,{userId:t})=>Object.assign(Object.assign({},e),{userId:t})));const l=(0,i.lh)();n.on(l,((e,{placeholders:t})=>Object.assign(Object.assign({},e),{placeholders:t})));const d=(0,i.lh)();n.on(d,((e,{imagePlaceholders:t})=>Object.assign(Object.assign({},e),{imagePlaceholders:t})));const c=(0,i.lh)();n.on(c,((e,{lang:t})=>Object.assign(Object.assign({},e),{lang:t})));const u=(0,i.y$)(""),p=(0,i.lh)();(0,i.sY)({from:p,to:u})},6265:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var events__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(46),events__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__),_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3904),_ias_rpc__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3665),_md5__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5946),_src_stories_widget_helpers_media__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6292),_src_storyManager_api_domains__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9782),_src_storyManager_models_storyManagerConfig__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3128),__awaiter=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Events,BlobType;(0,_ias_rpc__WEBPACK_IMPORTED_MODULE_4__.A)(window),function(e){e.START_LOADER="startLoader",e.END_LOADER="endLoader"}(Events||(Events={})),BlobType||(BlobType={});class Widget extends events__WEBPACK_IMPORTED_MODULE_0__.EventEmitter{get loaderContainer(){if(!this._loaderContainer){const e=document.createElement("div");this.obj&&(this.obj.style.position="relative"),e.style.position="absolute",e.style.left=e.style.top=e.style.right=e.style.bottom="0px",e.style.pointerEvents="none",this.obj&&this.obj.prepend(e),this._loaderContainer=e}return this._loaderContainer}setCallbacks(e){this.callbacks=e}constructor(e,t){super(),this._options=t,this.callbacks={},this._loaderContainer=null,this.objId=e;let r=null;r="body"===e?document.body:document.querySelector(e),r&&(this.obj=r)}set options(e){this._options=Object.assign(Object.assign({},this._options),e)}get options(){return this._options}init(e){return __awaiter(this,void 0,void 0,(function*(){const t={},r={},i={},n=()=>{};return new Promise(((o,s)=>{this.__init(e,t,{},r,i,n,null,null,o,s)}))}))}__init(e,t,r,i,n,o,s,a,l,d){var c,u;return __awaiter(this,void 0,void 0,(function*(){t=t||{},i=i||{};const p=this.objId,f=this;let h=null;if(h="body"===p?document.body:document.querySelector(p),!h){let c=a||0;return c>10?void d("IAS.Widget: object: `"+p+"` not found."):void requestAnimationFrame((()=>{f.__init(e,t,r,i,n,o,s,c+1,l,d)}))}this.widgetId=s||++Widget.count,n=n||{},i=i||{},(e=e||{}).preview&&(t.preview=1,delete e.preview);e.base_domain||IAS_OLD._protocol;var g,v,m="auto"===e.width?0|(h.clientWidth||h.offsetWidth||n.minWidth):parseInt(e.width||0,10);const y=m?Math.max(n.minWidth||200,Math.min(n.maxWidth||1e4,m))+"px":"100%";this.objSavedStyles=h.style.cssText,n.fullScreen||(h.style.width=y,h.style.overflow="hidden",e.height?(t.height=e.height,h.style.height=e.height+"px"):h.style.height=(n.startHeight||200)+"px",e.overflowTouch&&(h.style.overflow="auto",h.style["-webkit-overflow-scrolling"]="touch")),"100%"===y&&(t.startWidth=0|(h.clientWidth||h.offsetWidth)),t.url||(t.url=e.pageUrl||location.href.replace(/#.*$/,"")),t.url=t.url||"",t.referrer=t.referrer||document.referrer||"",t.title=t.title||document.title||"",t.userId=t.userId||"",t.origin=window.location.protocol+"//"+window.location.hostname;const{nonce:_}=_src_storyManager_models_storyManagerConfig__WEBPACK_IMPORTED_MODULE_3__.Tl.getState(),b={html:this.getWidgetDocument(r,_),css:null!==(c=t.extraCss)&&void 0!==c?c:null,js:null!==(u=t.extraJs)&&void 0!==u?u:null,nonce:_};let w=this.getGeneratedPageURL(b);i.onStartLoading&&i.onStartLoading(),i.showLoader=function(e){IAS_OLD.Util.Loader(e)},i.publish=function(){var e=Array.prototype.slice.call(arguments);e.push(f.widgetId),IAS_OLD.Observer.publish.apply(IAS_OLD.Observer,e)},i.onInit=function(){e.onReady&&e.onReady()},i.hideLoader=function(){},i.resize=function(e,t){if(h){h.style.height=e+"px";var r=document.getElementById("iaswidget"+f.widgetId);r&&(r.style.height=e+"px")}},i.resizeWidget=function(t,r){const i=parseInt(t),n=parseInt(r);var o=document.getElementById("iaswidget"+f.widgetId);isFinite(i)&&h&&(h.style.width=i+"px",o&&(o.style.width=i+"px")),isFinite(n)&&h&&(h.style.height=n+"px",o&&(o.style.height=n+"px")),e.onResizeWidget&&e.onResizeWidget()},g=IAS_OLD.Widget.RPC[f.widgetId]=new window.iasRPC.Server(i,(function(e){return!e||(e=e.toLowerCase(),!0)}),{safe:!0});const S={src:"",id:"iaswidget"+f.widgetId,allowTransparency:e.allowTransparency||!1,style:{backgroundColor:e.backgroundColor||"transparent"}};n.fullScreen?(S.style.position="fixed",S.style.left=0,S.style.top=0,S.style.padding=0,S.style.border=0,S.style.zIndex=1002,S.style.width="100%",S.style.height="100%"):(S.width=-1!=y.indexOf("%")?y:parseInt(y)||y,S.height=n.startHeight||"100%",S.style.width="1px",S.style.minWidth="100%",S.style["*width"]="100%"),n.scrolling?S.scrolling="yes":(S.scrolling="no",S.style.overflow="hidden"),n.hidden&&(S.style.display="none"),S.style.colorScheme="auto",(0,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.uM)()?S.srcdoc=w.srcdoc:S.src=w.src,v=IAS_OLD.Widget.RPC[f.widgetId].append(h,S),this.emit("ready"),this.on("widgetLoaded",(()=>{requestAnimationFrame((()=>{o&&o(h,v||(null==h?void 0:h.firstChild),g),l(!0)}))}))}))}_destroyClientWidget(){}destroy(){try{this._destroyClientWidget(),requestAnimationFrame((()=>{try{const e=IAS_OLD.Widget.RPC[this.widgetId];e&&e.destroy(),this.obj&&(this.obj.innerHTML="",this.obj.style.cssText=this.objSavedStyles)}catch(e){console.error(e)}}))}catch(e){console.error(e)}}showBoxUrl(e,t){return(e=(e||IAS_OLD._protocol+"//sdk-narrator.kiozk.ru").replace(/\/?\s*$/,""))+"/"+(t=t.replace(/^\s*\/?/,""))}startLoader(){let e=(0,_src_stories_widget_helpers_media__WEBPACK_IMPORTED_MODULE_5__.gP)(`${_src_storyManager_api_domains__WEBPACK_IMPORTED_MODULE_2__.C.baseUrl}/v0.0.1/dist/loader.gif`);this.loaderContainer.style.background=`url("${e}") center center no-repeat transparent`}stopLoader(){this.loaderContainer.style.display="none"}getGeneratedPageURL({html:e,css:t,js:r,nonce:i}){let n="",o="";null!==t&&(n=`<link rel="stylesheet" type="text/css" href="${(0,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.jp)(t,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.Vd.CSS)}" />`),null!==r&&(o=`<script nonce="${i}">${(0,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.jp)(r,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.Vd.JS)}<\/script>`);const s=`\n <html>\n <head>\n <base href="${document.baseURI}"></base>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <script nonce="${i}">__webpack_nonce__ = "${i}";<\/script>\n ${n}\n ${o}\n </head>\n <body>\n ${e||""}\n </body>\n </html>\n `;null!==t&&(n=`<style nonce="${i}">${t}</style>`),null!==r&&(o=`<script nonce="${i}">${r}<\/script>`);let a=`\n <html>\n <head>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <script nonce="${i}">__webpack_nonce__ = "${i}";<\/script>\n ${n}\n ${o}\n </head>\n <body>\n ${e||""}\n </body>\n </html>\n `;return{src:(0,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.jp)(s,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.Vd.HTML),srcdoc:a}}getWidgetDocument(e,t){return""}}Widget.count=0,Widget.RPC={};const __WEBPACK_DEFAULT_EXPORT__=Widget;class IAS_OLD{}if(IAS_OLD.version="v1",IAS_OLD.MD5=_md5__WEBPACK_IMPORTED_MODULE_6__.F,IAS_OLD.extend=_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.X$,IAS_OLD._protocol="https:",IAS_OLD._base_domain="",IAS_OLD.Widget=Widget,IAS_OLD.xdConnectionCallbacks?setTimeout((function(){for(var e;e=IAS_OLD.xdConnectionCallbacks.pop();)e()}),0):(IAS_OLD.extend(IAS_OLD,{version:1,_apiKey:null,_session:null,_domain:{main:IAS_OLD._protocol+"//sdk-narrator.kiozk.ru/",api:IAS_OLD._protocol+"//api-narrator.kiozk.ru/"},_path:{login:"authorize",proxy:"fxdm_oauth_proxy.html"},_rootId:"ias_api_transport",_nameTransportPath:"",xdReady:!1}),IAS_OLD.init=function(e){if(IAS_OLD._apiKey=null,!e.apiKey)throw Error("IAS_OLD.init() called without an apiKey");return IAS_OLD._apiKey=e.apiKey,IAS_OLD.userId=e.userId,!0}),IAS_OLD.XDM||(IAS_OLD.XDM={remote:null,init:function(){if(this.remote)return!1;var e=IAS_OLD._domain.api+IAS_OLD._path.proxy;this.remote=new window.iasRPC.Server({onInit:function(){IAS_OLD.xdReady=!0,IAS_OLD.Observer.publish("xdm.init")}}),this.remote.append(document.getElementById(IAS_OLD._rootId),{src:e})},xdHandler:function(code){try{eval("IAS_OLD."+code)}catch(e){}}}),IAS_OLD.Observer||(IAS_OLD.Observer={_subscribers:function(){return this._subscribersMap||(this._subscribersMap={}),this._subscribersMap},publish:function(){var e,t,r=Array.prototype.slice.call(arguments),i=r.shift(),n=this._subscribers()[i];if(n)for(e=0,t=n.length;e<t;e++)null!=n[e]&&n[e].apply(this,r)},subscribe:function(e,t){var r=this._subscribers();if("function"!=typeof t)return!1;r[e]?r[e].push(t):r[e]=[t]},unsubscribe:function(e,t){var r,i,n=this._subscribers()[e];if(!n)return!1;if("function"==typeof t)for(r=0,i=n.length;r<i;r++)n[r]==t&&(n[r]=null);else delete this._subscribers()[e]}}),IAS_OLD.Util||(IAS_OLD.Util={getStyle:function(e,t){var r,i=document.defaultView||window;if(i.getComputedStyle){t=t.replace(/([A-Z])/g,"-$1").toLowerCase();var n=i.getComputedStyle(e,null);n&&(r=n.getPropertyValue(t))}else if(e.currentStyle){var o=t.replace(/\-(\w)/g,(function(e,t){return t.toUpperCase()}));r=e.currentStyle[t]||e.currentStyle[o]}return r},getXY:function(e,t){if(e&&void 0!==e){var r=0,i=0;if(void 0!==e.getBoundingClientRect){var n=e.getBoundingClientRect();r=n.left,i=n.top,t=!0}else if(e.offsetParent)do{r+=e.offsetLeft,i+=e.offsetTop,t&&(r-=e.scrollLeft,i-=e.scrollTop)}while(e=e.offsetParent);return t&&(i+=window.pageYOffset||window.scrollNode&&window.scrollNode.scrollTop||document.documentElement.scrollTop,r+=window.pageXOffset||window.scrollNode&&window.scrollNode.scrollLeft||document.documentElement.scrollLeft),[r,i]}},Loader:function e(t){e.loader||((e.loader=document.createElement("DIV")).innerHTML='<style type="text/css"> @-webkit-keyframes IAS_OLDWidgetsLoaderKeyframes {0%{opacity: 0.2;}30%{opacity: 1;}100%{opacity: 0.2;}} @keyframes IAS_OLDWidgetsLoaderKeyframes {0%{opacity: 0.2;}30%{opacity: 1;}100%{opacity: 0.2;}} .IAS_OLDWidgetsLoader div {width: 7px;height: 7px;-webkit-border-radius: 50%;-khtml-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%;background: #fff;top: 21px;position: absolute;z-index: 2;-o-transition: opacity 350ms linear; transition: opacity 350ms linear;opacity: 0.2;-webkit-animation-duration: 750ms;-o-animation-duration: 750ms;animation-duration: 750ms;-webkit-animation-name: IAS_OLDWidgetsLoaderKeyframes;-o-animation-name: IAS_OLDWidgetsLoaderKeyframes;animation-name: IAS_OLDWidgetsLoaderKeyframes;-webkit-animation-iteration-count: infinite;-o-animation-iteration-count: infinite;animation-iteration-count: infinite;-webkit-transform: translateZ(0);transform: translateZ(0);}</style><div class="IAS_OLDWidgetsLoader" style="position: fixed;left: 50%;top: 50%;margin: -25px -50px;z-index: 1002;height: 50px;width: 100px;"><div style="left: 36px;-webkit-animation-delay: 0ms;-o-animation-delay: 0ms;animation-delay: 0ms;"></div><div style="left: 47px;-webkit-animation-delay: 180ms;-o-animation-delay: 180ms;animation-delay: 180ms;"></div><div style="left: 58px;-webkit-animation-delay: 360ms;-o-animation-delay: 360ms;animation-delay: 360ms;"></div><span style="display: block;background-color: #000;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;-webkit-box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.35);-moz-box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.35);box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.35);position: absolute;left: 0;top: 0;bottom: 0; right: 0;z-index: 1;opacity: 0.7;"></span></div>',document.body.insertBefore(e.loader,document.body.firstChild)),e.loader.style.display=t?"block":"none"},addEvent:function(e,t,r){(r=r||window.document).addEventListener?r.addEventListener(e,t,!1):r.attachEvent&&r.attachEvent("on"+e,t)},removeEvent:function(e,t,r){(r=r||window.document).removeEventListener?r.removeEventListener(e,t,!1):r.detachEvent&&r.detachEvent("on"+e,t)},ss:function(e,t){IAS_OLD.extend(e.style,t,!0)},getScroll:function(){if(void 0!==window.pageYOffset)return[pageXOffset,pageYOffset];var e=document,t=e.documentElement,r=e.body;return[t.scrollLeft||r.scrollLeft||0,t.scrollTop||r.scrollTop||0]}}),window.IAS_OLDReady&&window.IAS_OLDReady._e)for(let e=0;e<window.IAS_OLDReady._e.length;e++)setTimeout(window.IAS_OLDReady._e[e],0);window.iasAsyncInitCallbacks&&window.iasAsyncInitCallbacks.length&&setTimeout((function(){for(var e;e=window.iasAsyncInitCallbacks.pop();)try{e()}catch(e){try{console.error(e)}catch(e){}}}),0)},3904:(e,t,r)=>{"use strict";function i(e,t,r){for(const i in t)t.hasOwnProperty(i)&&(r||void 0===e[i])&&(e[i]=t[i]);return e}var n;function o(e,t){const r=new Blob([e],{type:t});return URL.createObjectURL(r)}r.d(t,{Vd:()=>n,X$:()=>i,jp:()=>o,uM:()=>l}),function(e){e.CSS="text/css",e.JS="text/javascript",e.HTML="text/html"}(n||(n={}));let s=!1,a=!1;const l=()=>{if(!a){const e=document.createElement("iframe");s="srcdoc"in e,a=!0}return s}},4406:(e,t,r)=>{"use strict";r.r(t),r.d(t,{NIL:()=>O,parse:()=>u,stringify:()=>s.A,v1:()=>d,v3:()=>b,v4:()=>w.A,v5:()=>k,validate:()=>c.A,version:()=>L});var i,n,o=r(8062),s=r(9834),a=0,l=0;const d=function(e,t,r){var d=t&&r||0,c=t||new Array(16),u=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:n;if(null==u||null==p){var f=e.random||(e.rng||o.A)();null==u&&(u=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=n=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:l+1,v=h-a+(g-l)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||h>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,l=g,n=p;var m=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;c[d++]=m>>>24&255,c[d++]=m>>>16&255,c[d++]=m>>>8&255,c[d++]=255&m;var y=h/4294967296*1e4&268435455;c[d++]=y>>>8&255,c[d++]=255&y,c[d++]=y>>>24&15|16,c[d++]=y>>>16&255,c[d++]=p>>>8|128,c[d++]=255&p;for(var _=0;_<6;++_)c[d+_]=u[_];return t||(0,s.A)(c)};var c=r(3186);const u=function(e){if(!(0,c.A)(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function p(e,t,r){function i(e,i,n,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof i&&(i=u(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(i),a.set(e,i.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,n){o=o||0;for(var l=0;l<16;++l)n[o+l]=a[l];return n}return(0,s.A)(a)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function f(e){return 14+(e+64>>>9<<4)+1}function h(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function g(e,t,r,i,n,o){return h((s=h(h(t,e),h(i,o)))<<(a=n)|s>>>32-a,r);var s,a}function v(e,t,r,i,n,o,s){return g(t&r|~t&i,e,t,n,o,s)}function m(e,t,r,i,n,o,s){return g(t&i|r&~i,e,t,n,o,s)}function y(e,t,r,i,n,o,s){return g(t^r^i,e,t,n,o,s)}function _(e,t,r,i,n,o,s){return g(r^(t|~i),e,t,n,o,s)}const b=p("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,i="0123456789abcdef",n=0;n<r;n+=8){var o=e[n>>5]>>>n%32&255,s=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[f(t)-1]=t;for(var r=1732584193,i=-271733879,n=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=r,l=i,d=n,c=o;r=v(r,i,n,o,e[s],7,-680876936),o=v(o,r,i,n,e[s+1],12,-389564586),n=v(n,o,r,i,e[s+2],17,606105819),i=v(i,n,o,r,e[s+3],22,-1044525330),r=v(r,i,n,o,e[s+4],7,-176418897),o=v(o,r,i,n,e[s+5],12,1200080426),n=v(n,o,r,i,e[s+6],17,-1473231341),i=v(i,n,o,r,e[s+7],22,-45705983),r=v(r,i,n,o,e[s+8],7,1770035416),o=v(o,r,i,n,e[s+9],12,-1958414417),n=v(n,o,r,i,e[s+10],17,-42063),i=v(i,n,o,r,e[s+11],22,-1990404162),r=v(r,i,n,o,e[s+12],7,1804603682),o=v(o,r,i,n,e[s+13],12,-40341101),n=v(n,o,r,i,e[s+14],17,-1502002290),r=m(r,i=v(i,n,o,r,e[s+15],22,1236535329),n,o,e[s+1],5,-165796510),o=m(o,r,i,n,e[s+6],9,-1069501632),n=m(n,o,r,i,e[s+11],14,643717713),i=m(i,n,o,r,e[s],20,-373897302),r=m(r,i,n,o,e[s+5],5,-701558691),o=m(o,r,i,n,e[s+10],9,38016083),n=m(n,o,r,i,e[s+15],14,-660478335),i=m(i,n,o,r,e[s+4],20,-405537848),r=m(r,i,n,o,e[s+9],5,568446438),o=m(o,r,i,n,e[s+14],9,-1019803690),n=m(n,o,r,i,e[s+3],14,-187363961),i=m(i,n,o,r,e[s+8],20,1163531501),r=m(r,i,n,o,e[s+13],5,-1444681467),o=m(o,r,i,n,e[s+2],9,-51403784),n=m(n,o,r,i,e[s+7],14,1735328473),r=y(r,i=m(i,n,o,r,e[s+12],20,-1926607734),n,o,e[s+5],4,-378558),o=y(o,r,i,n,e[s+8],11,-2022574463),n=y(n,o,r,i,e[s+11],16,1839030562),i=y(i,n,o,r,e[s+14],23,-35309556),r=y(r,i,n,o,e[s+1],4,-1530992060),o=y(o,r,i,n,e[s+4],11,1272893353),n=y(n,o,r,i,e[s+7],16,-155497632),i=y(i,n,o,r,e[s+10],23,-1094730640),r=y(r,i,n,o,e[s+13],4,681279174),o=y(o,r,i,n,e[s],11,-358537222),n=y(n,o,r,i,e[s+3],16,-722521979),i=y(i,n,o,r,e[s+6],23,76029189),r=y(r,i,n,o,e[s+9],4,-640364487),o=y(o,r,i,n,e[s+12],11,-421815835),n=y(n,o,r,i,e[s+15],16,530742520),r=_(r,i=y(i,n,o,r,e[s+2],23,-995338651),n,o,e[s],6,-198630844),o=_(o,r,i,n,e[s+7],10,1126891415),n=_(n,o,r,i,e[s+14],15,-1416354905),i=_(i,n,o,r,e[s+5],21,-57434055),r=_(r,i,n,o,e[s+12],6,1700485571),o=_(o,r,i,n,e[s+3],10,-1894986606),n=_(n,o,r,i,e[s+10],15,-1051523),i=_(i,n,o,r,e[s+1],21,-2054922799),r=_(r,i,n,o,e[s+8],6,1873313359),o=_(o,r,i,n,e[s+15],10,-30611744),n=_(n,o,r,i,e[s+6],15,-1560198380),i=_(i,n,o,r,e[s+13],21,1309151649),r=_(r,i,n,o,e[s+4],6,-145523070),o=_(o,r,i,n,e[s+11],10,-1120210379),n=_(n,o,r,i,e[s+2],15,718787259),i=_(i,n,o,r,e[s+9],21,-343485551),r=h(r,a),i=h(i,l),n=h(n,d),o=h(o,c)}return[r,i,n,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(f(t)),i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))}));var w=r(7981);function S(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:case 3:return t^r^i;case 2:return t&r^t&i^r&i}}function C(e,t){return e<<t|e>>>32-t}const k=p("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var n=0;n<i.length;++n)e.push(i.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),l=0;l<s;++l){for(var d=new Uint32Array(16),c=0;c<16;++c)d[c]=e[64*l+4*c]<<24|e[64*l+4*c+1]<<16|e[64*l+4*c+2]<<8|e[64*l+4*c+3];a[l]=d}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var u=0;u<s;++u){for(var p=new Uint32Array(80),f=0;f<16;++f)p[f]=a[u][f];for(var h=16;h<80;++h)p[h]=C(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var g=r[0],v=r[1],m=r[2],y=r[3],_=r[4],b=0;b<80;++b){var w=Math.floor(b/20),k=C(g,5)+S(w,v,m,y)+_+t[w]+p[b]>>>0;_=y,y=m,m=C(v,30)>>>0,v=g,g=k}r[0]=r[0]+g>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+_>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),O="00000000-0000-0000-0000-000000000000";const L=function(e){if(!(0,c.A)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},8062:(e,t,r)=>{"use strict";var i;r.d(t,{A:()=>o});var n=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(n)}},9834:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});for(var i=r(3186),n=[],o=0;o<256;++o)n.push((o+256).toString(16).substr(1));const s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase();if(!(0,i.A)(r))throw TypeError("Stringified UUID is invalid");return r}},7981:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(8062),n=r(9834);const o=function(e,t,r){var o=(e=e||{}).random||(e.rng||i.A)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=o[s];return t}return(0,n.A)(o)}},3186:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const n=function(e){return"string"==typeof e&&i.test(e)}},7791:(e,t,r)=>{"use strict";function i(e){const t=window.getComputedStyle(e),r=t.transform||t.webkitTransform||t.mozTransform;if("none"===r)return{x:0,y:0,z:0};const i=r.includes("3d")?"3d":"2d",n=r.match(/matrix.*\((.+)\)/)[1].split(", ");return"2d"===i?{x:isNaN(n[4])?0:n[4],y:isNaN(n[5])?0:n[5],z:0}:"3d"===i?{x:isNaN(n[12])?0:n[12],y:isNaN(n[13])?0:n[13],z:isNaN(n[14])?0:n[14]}:void 0}function n(e){return Object.keys(e).reduce(((t,r)=>t+r.split(/(?=[A-Z])/).join("-").toLowerCase()+":"+e[r]+";"),"")}r.d(t,{j9:()=>i,ky:()=>n})},3665:(e,t,r)=>{"use strict";function i(e){if(!e.iasRPC){var t={},r=[],i={};e.iasRPC={_id:0,Server:function(r,i,n){this.methods=r||{},this.filter=i,this.options=n||{},this.id=e.iasRPC._id++,this.key=function(){for(var e="",t=0;t<5;t++)e+=Math.ceil(15*Math.random()).toString(16);return e}(),this.frameName="fXD"+this.key,this.server=!0;var o=this;this.methods["%init%"]=this.methods.__fxdm_i=function(){e.iasRPC.run(o.id),o.methods.onInit&&o.methods.onInit()},t[this.key]=[l,this]},Client:function(r,i){if(this.methods=r||{},this.options=i||{},this.id=e.iasRPC._id++,this.client=!0,e.iasRPC.run(this.id),0!==window.name.indexOf("fXD"))throw Error("Wrong window.name property.");this.key=window.name.substr(3),this.caller=window.parent,t[this.key]=[l,this],e.iasRPC.on("helper",(function(){e.iasRPC.onClientStart(this)}),this),s((function(e){e.send(this,e.json.stringify(["%init%"]));var t=this.methods;setTimeout((function(){t.onInit&&t.onInit()}),0)}),this)},onMessage:function(e){var r=e.data;if(!r)return!1;if("string"!=typeof r&&!(r instanceof String))return!1;var i=r.substr(0,5);if(t[i]){var n=t[i][1];!n||n.filter&&!n.filter(e.origin)||t[i][0](r.substr(6),n)}},setJSON:function(e){i.json=e},getJSON:function(e){if(!e)return i.json;s((function(t){e(t.json)}))},setEnv:function(e){for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);a()},_q:{},on:function(e,t,r){this._q[e]||(this._q[e]=[]),-1==this._q[e]?t.apply(r):this._q[e].push([t,r])},run:function(e){for(var t=(this._q[e]||[]).length,r=0;r<t;r++)this._q[e][r][0].apply(this._q[e][r][1]);this._q[e]=-1},waitFor:n},e.iasRPC.Server.prototype.start=function(t,r){if(t.contentWindow)this.caller=t.contentWindow,this.frame=t,e.iasRPC.on("helper",(function(){e.iasRPC.onServerStart(this)}),this);else{var i=this;(r=r||0)<50&&setTimeout((function(){i.start.apply(i,[t,r+1])}),100)}},e.iasRPC.Server.prototype.destroy=function(){delete t[this.key]},e.iasRPC.Server.prototype.append=function(e,t,r){var i=document.createElement("div");i.innerHTML='<iframe name="'+this.frameName+'" '+(r||"")+"></iframe>";var n=i.firstChild,o=this;return setTimeout((function(){n.frameBorder="0",t&&d(n,t),e.insertBefore(n,e.firstChild),o.start(n)}),0),n},e.iasRPC.Client.prototype.callMethod=e.iasRPC.Server.prototype.callMethod=function(){for(var t=Array.prototype.slice.call(arguments),r=t.shift(),i=0,a=t.length;i<a;i++)if("function"==typeof t[i]){this.funcsCount=(this.funcsCount||0)+1;var l=t[i],d="_func"+this.funcsCount;this.methods[d]=function(){l.apply(this,arguments),delete this.methods[d]},t[i]={_func:this.funcsCount}}else this.options.safe&&(t[i]=o(t[i],!0));n(this,"caller",(function(){e.iasRPC.on(this.id,(function(){s((function(e){e.send(this,e.json.stringify([r,t]))}),this)}),this)}),this)},i.json={parse:e.JSON.parse,stringify:e.JSON.stringify},e.postMessage&&(i.protocol="p",i.send=function(e,t){var r=e.frame?e.frame.contentWindow:e.caller;if(r)try{r.postMessage(e.key+":"+t,"*")}catch(i){window.postMessage.call(r,e.key+":"+t,"*")}},e.addEventListener?e.addEventListener("message",e.iasRPC.onMessage,!1):e.attachEvent("onmessage",e.iasRPC.onMessage),a())}function n(e,t,r,i,o){e[t]?r.apply(i):(o=o||0)<1e3&&setTimeout((function(){n(e,t,r,i,o+1)}),0)}function o(e,t){var r;switch(typeof e){case"string":r=t?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):e.replace(/&#039;/g,"'").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&");break;case"object":if(null===e)r=e;else if("[object Array]"===Object.prototype.toString.apply(e)){r=[];for(var i=0,n=e.length;i<n;i++)r[i]=o(e[i],t)}else for(var s in r={},e)Object.hasOwnProperty.call(e,s)&&(r[s]=o(e[s],t));break;default:r=e}return r}function s(e,t){i.loaded?e.apply(t,[i]):r.push([t,e])}function a(){i.loaded=!0;for(var e=0,t=r.length;e<t;e++)r[e][1].apply(r[e][0],[i])}function l(e,t){s((function(r){var i=r.json.parse(e);if(i[0]){i[1]||(i[1]=[]);for(var n=0,s=i[1].length;n<s;n++)if(i[1][n]&&i[1][n]._func){var a=i[1][n]._func;i[1][n]=function(){var e=Array.prototype.slice.call(arguments);e.unshift("_func"+a),t.callMethod.apply(t,e)}}else t.options.safe&&(i[1][n]=o(i[1][n],!1));setTimeout((function(){if(!t.methods[i[0]])throw Error("iasRPC: Method "+i[0]+" is undefined");t.methods[i[0]].apply(t,i[1])}),0)}}))}function d(e,t){for(var r in t)e[r]&&"object"==typeof e[r]?d(e[r],t[r]):e[r]=t[r]}}r.d(t,{A:()=>i})},5946:(e,t,r)=>{"use strict";function i(e){var t,r=function(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r},i=function(e,t,i,n,o,s){return r(function(e,t){return e<<t|e>>>32-t}(r(r(t,e),r(n,s)),o),i)},n=function(e,t,r,n,o,s,a){return i(t&r|~t&n,e,t,o,s,a)},o=function(e,t,r,n,o,s,a){return i(t&n|r&~n,e,t,o,s,a)},s=function(e,t,r,n,o,s,a){return i(t^r^n,e,t,o,s,a)},a=function(e,t,r,n,o,s,a){return i(r^(t|~n),e,t,o,s,a)};return function(e){for(var t,r="0123456789abcdef",i="",n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),i+=r.charAt(t>>>4&15)+r.charAt(15&t);return i}(function(e){for(var t="",r=0,i=32*e.length;r<i;r+=8)t+=String.fromCharCode(e[r>>5]>>>r%32&255);return t}(function(e,t){var i,l,d,c,u=1732584193,p=-271733879,f=-1732584194,h=271733878;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var g=0,v=e.length;g<v;g+=16)i=u,l=p,d=f,c=h,u=n(u,p,f,h,e[g+0],7,-680876936),h=n(h,u,p,f,e[g+1],12,-389564586),f=n(f,h,u,p,e[g+2],17,606105819),p=n(p,f,h,u,e[g+3],22,-1044525330),u=n(u,p,f,h,e[g+4],7,-176418897),h=n(h,u,p,f,e[g+5],12,1200080426),f=n(f,h,u,p,e[g+6],17,-1473231341),p=n(p,f,h,u,e[g+7],22,-45705983),u=n(u,p,f,h,e[g+8],7,1770035416),h=n(h,u,p,f,e[g+9],12,-1958414417),f=n(f,h,u,p,e[g+10],17,-42063),p=n(p,f,h,u,e[g+11],22,-1990404162),u=n(u,p,f,h,e[g+12],7,1804603682),h=n(h,u,p,f,e[g+13],12,-40341101),f=n(f,h,u,p,e[g+14],17,-1502002290),p=n(p,f,h,u,e[g+15],22,1236535329),u=o(u,p,f,h,e[g+1],5,-165796510),h=o(h,u,p,f,e[g+6],9,-1069501632),f=o(f,h,u,p,e[g+11],14,643717713),p=o(p,f,h,u,e[g+0],20,-373897302),u=o(u,p,f,h,e[g+5],5,-701558691),h=o(h,u,p,f,e[g+10],9,38016083),f=o(f,h,u,p,e[g+15],14,-660478335),p=o(p,f,h,u,e[g+4],20,-405537848),u=o(u,p,f,h,e[g+9],5,568446438),h=o(h,u,p,f,e[g+14],9,-1019803690),f=o(f,h,u,p,e[g+3],14,-187363961),p=o(p,f,h,u,e[g+8],20,1163531501),u=o(u,p,f,h,e[g+13],5,-1444681467),h=o(h,u,p,f,e[g+2],9,-51403784),f=o(f,h,u,p,e[g+7],14,1735328473),p=o(p,f,h,u,e[g+12],20,-1926607734),u=s(u,p,f,h,e[g+5],4,-378558),h=s(h,u,p,f,e[g+8],11,-2022574463),f=s(f,h,u,p,e[g+11],16,1839030562),p=s(p,f,h,u,e[g+14],23,-35309556),u=s(u,p,f,h,e[g+1],4,-1530992060),h=s(h,u,p,f,e[g+4],11,1272893353),f=s(f,h,u,p,e[g+7],16,-155497632),p=s(p,f,h,u,e[g+10],23,-1094730640),u=s(u,p,f,h,e[g+13],4,681279174),h=s(h,u,p,f,e[g+0],11,-358537222),f=s(f,h,u,p,e[g+3],16,-722521979),p=s(p,f,h,u,e[g+6],23,76029189),u=s(u,p,f,h,e[g+9],4,-640364487),h=s(h,u,p,f,e[g+12],11,-421815835),f=s(f,h,u,p,e[g+15],16,530742520),p=s(p,f,h,u,e[g+2],23,-995338651),u=a(u,p,f,h,e[g+0],6,-198630844),h=a(h,u,p,f,e[g+7],10,1126891415),f=a(f,h,u,p,e[g+14],15,-1416354905),p=a(p,f,h,u,e[g+5],21,-57434055),u=a(u,p,f,h,e[g+12],6,1700485571),h=a(h,u,p,f,e[g+3],10,-1894986606),f=a(f,h,u,p,e[g+10],15,-1051523),p=a(p,f,h,u,e[g+1],21,-2054922799),u=a(u,p,f,h,e[g+8],6,1873313359),h=a(h,u,p,f,e[g+15],10,-30611744),f=a(f,h,u,p,e[g+6],15,-1560198380),p=a(p,f,h,u,e[g+13],21,1309151649),u=a(u,p,f,h,e[g+4],6,-145523070),h=a(h,u,p,f,e[g+11],10,-1120210379),f=a(f,h,u,p,e[g+2],15,718787259),p=a(p,f,h,u,e[g+9],21,-343485551),u=r(u,i),p=r(p,l),f=r(f,d),h=r(h,c);return[u,p,f,h]}(function(e){var t,r,i=Array(e.length>>2);for(t=0,r=i.length;t<r;t++)i[t]=0;for(t=0,r=8*e.length;t<r;t+=8)i[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return i}(t=function(e){for(var t,r,i="",n=-1,o=e.length;++n<o;)t=e.charCodeAt(n),r=n+1<o?e.charCodeAt(n+1):0,55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t=65536+((1023&t)<<10)+(1023&r),n++),t<=127?i+=String.fromCharCode(t):t<=2047?i+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?i+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(i+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return i}(e)),8*t.length)))}r.d(t,{F:()=>i})},9155:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__9155__},9514:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__9514__},3373:(e,t)=>{var r;
22
+ */r(1513);var i=r(9155),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;o=n("react.element"),t.Fragment=n("react.fragment")}var s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,r){var i,n={},d=null,c=null;for(i in void 0!==r&&(d=""+r),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,i)&&!l.hasOwnProperty(i)&&(n[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===n[i]&&(n[i]=t[i]);return{$$typeof:o,type:e,key:d,ref:c,props:n,_owner:s.current}}t.jsx=d,t.jsxs=d},1085:(e,t,r)=>{"use strict";e.exports=r(3335)},2591:(e,t,r)=>{"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},n=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),s=[];function a(e){for(var t=-1,r=0;r<s.length;r++)if(s[r].identifier===e){t=r;break}return t}function l(e,t){for(var r={},i=[],o=0;o<e.length;o++){var n=e[o],l=t.base?n[0]+t.base:n[0],d=r[l]||0,c="".concat(l," ").concat(d);r[l]=d+1;var u=a(c),p={css:n[1],media:n[2],sourceMap:n[3]};-1!==u?(s[u].references++,s[u].updater(p)):s.push({identifier:c,updater:v(p,t),references:1}),i.push(c)}return i}function d(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=r.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=n(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function p(e,t,r,i){var o=r?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=u(t,o);else{var n=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(n,s[t]):e.appendChild(n)}}function f(e,t,r){var i=r.css,o=r.media,n=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,g=0;function v(e,t){var r,i,o;if(t.singleton){var n=g++;r=h||(h=d(t)),i=p.bind(null,r,n,!1),o=p.bind(null,r,n,!0)}else r=d(t),i=f.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<r.length;i++){var o=a(r[i]);s[o].references--}for(var n=l(e,t),d=0;d<r.length;d++){var c=a(r[d]);0===s[c].references&&(s[c].updater(),s.splice(c,1))}r=n}}}},6292:(e,t,r)=>{"use strict";r.d(t,{eJ:()=>s,gP:()=>o});var i=r(7791);function o(e){let t=window.isSecureContext;return void 0===t&&"https:"===window.location.protocol&&(t=!0),t?e:e.replace(/^https:\/\//,"http://")}function n(e){return e.map((e=>function(e){var t,r,n;if(!e.url)return null;let s={"font-family":null!==(t=e.family)&&void 0!==t?t:"normal",src:`url('${o(String(e.url))}')`,"font-style":null!==(r=e.style)&&void 0!==r?r:"normal","font-weight":null!==(n=e.weight)&&void 0!==n?n:"normal"};e.title&&(s.src+=`, local('${e.title}')`);return`@font-face {${(0,i.ky)(s)}}\n`}(e))).filter(Boolean).join("")}function s(e){"fonts"in document?e.forEach((e=>{const t=new FontFace(e.family,`url(${e.url})`,{style:e.style,weight:e.weight,display:"block"});document.fonts.add&&document.fonts.add(t),t.load()})):function(e){const t=n(e);if(null!=t){const e="stories-font-style";let r=document.getElementById(e);null===r?(r=document.createElement("style"),r.type="text/css",r.id=e,r.attributes.setNamedItem(document.createAttribute("scoped")),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t)),document.body.appendChild(r)):r.styleSheet?r.styleSheet.cssText=t:(r.textContent="",r.appendChild(document.createTextNode(t)))}}(e)}},9782:(e,t,r)=>{"use strict";r.d(t,{C:()=>i,F:()=>n});const i={baseUrl:"https://sdk.inappstory.ru",apiUrl:"https://api.inappstory.ru",faviconApiUrl:"https://favicon.inappstory.ru"};function o(e){if(e.length>32)try{const t=function(e){const t=(e=e.replace(new RegExp("-","g"),"+").replace(new RegExp("_","g"),"/")).length;return e=function(e,t,r){return void 0===t?e:t.length>=e.length?t:r?(e+t).slice(-e.length):(t+e).substring(0,e.length)}(new Array(t%4).fill("=").join(""),e,!1),window.atob(e)}(e),r=t.charCodeAt(13);if(r>0){let e=t.substr(14,r);e=e.replace(/\0+$/,"");const i="{QQN{xuV?1Dv16j3";let o=i,n=0;for(;o.length<r;)o+=i[n],n++,n===i.length&&(n=0);let s="";for(let t=0;t<r;t++)s+=String.fromCharCode(e.charCodeAt(t)^o.charCodeAt(t));return new URL(`https://${s}`).host}}catch(e){console.error(e)}return null}function n(e){const t=o(e);if(null!=t){const e=t.split(".").slice(1);i.baseUrl=`https://${["sdk",...e].join(".")}`,i.faviconApiUrl=`https://${["favicon",...e].join(".")}`,i.apiUrl=`https://${t}`}}},3128:(e,t,r)=>{"use strict";r.d(t,{Ue:()=>u,Tl:()=>o,YB:()=>p,JG:()=>n,qR:()=>d,rN:()=>c,Fn:()=>l,ib:()=>s,by:()=>a});var i=r(1810);const o=(0,i.y$)({apiKey:"",disableStatistic:!1}),n=(0,i.lh)();o.on(n,((e,t)=>t));const s=(0,i.lh)();o.on(s,((e,{tags:t})=>Object.assign(Object.assign({},e),{tags:t})));const a=(0,i.lh)();o.on(a,((e,{userId:t})=>Object.assign(Object.assign({},e),{userId:t})));const l=(0,i.lh)();o.on(l,((e,{placeholders:t})=>Object.assign(Object.assign({},e),{placeholders:t})));const d=(0,i.lh)();o.on(d,((e,{imagePlaceholders:t})=>Object.assign(Object.assign({},e),{imagePlaceholders:t})));const c=(0,i.lh)();o.on(c,((e,{lang:t})=>Object.assign(Object.assign({},e),{lang:t})));const u=(0,i.y$)(""),p=(0,i.lh)();(0,i.sY)({from:p,to:u})},6265:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var events__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(46),events__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__),_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3904),_ias_rpc__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3665),_md5__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5946),_src_stories_widget_helpers_media__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6292),_src_storyManager_api_domains__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9782),_src_storyManager_models_storyManagerConfig__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3128),__awaiter=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Events,BlobType;(0,_ias_rpc__WEBPACK_IMPORTED_MODULE_4__.A)(window),function(e){e.START_LOADER="startLoader",e.END_LOADER="endLoader"}(Events||(Events={})),BlobType||(BlobType={});class Widget extends events__WEBPACK_IMPORTED_MODULE_0__.EventEmitter{get loaderContainer(){if(!this._loaderContainer){const e=document.createElement("div");this.obj&&(this.obj.style.position="relative"),e.style.position="absolute",e.style.left=e.style.top=e.style.right=e.style.bottom="0px",e.style.pointerEvents="none",this.obj&&this.obj.prepend(e),this._loaderContainer=e}return this._loaderContainer}setCallbacks(e){this.callbacks=e}constructor(e,t){super(),this._options=t,this.callbacks={},this._loaderContainer=null,this.objId=e;let r=null;r="body"===e?document.body:document.querySelector(e),r&&(this.obj=r)}set options(e){this._options=Object.assign(Object.assign({},this._options),e)}get options(){return this._options}init(e){return __awaiter(this,void 0,void 0,(function*(){const t={},r={},i={},o=()=>{};return new Promise(((n,s)=>{this.__init(e,t,{},r,i,o,null,null,n,s)}))}))}__init(e,t,r,i,o,n,s,a,l,d){var c,u;return __awaiter(this,void 0,void 0,(function*(){t=t||{},i=i||{};const p=this.objId,f=this;let h=null;if(h="body"===p?document.body:document.querySelector(p),!h){let c=a||0;return c>10?void d("IAS.Widget: object: `"+p+"` not found."):void requestAnimationFrame((()=>{f.__init(e,t,r,i,o,n,s,c+1,l,d)}))}this.widgetId=s||++Widget.count,o=o||{},i=i||{},(e=e||{}).preview&&(t.preview=1,delete e.preview);e.base_domain||IAS_OLD._protocol;var g,v,m="auto"===e.width?0|(h.clientWidth||h.offsetWidth||o.minWidth):parseInt(e.width||0,10);const y=m?Math.max(o.minWidth||200,Math.min(o.maxWidth||1e4,m))+"px":"100%";this.objSavedStyles=h.style.cssText,o.fullScreen||(h.style.width=y,h.style.overflow="hidden",e.height?(t.height=e.height,h.style.height=e.height+"px"):h.style.height=(o.startHeight||200)+"px",e.overflowTouch&&(h.style.overflow="auto",h.style["-webkit-overflow-scrolling"]="touch")),"100%"===y&&(t.startWidth=0|(h.clientWidth||h.offsetWidth)),t.url||(t.url=e.pageUrl||location.href.replace(/#.*$/,"")),t.url=t.url||"",t.referrer=t.referrer||document.referrer||"",t.title=t.title||document.title||"",t.userId=t.userId||"",t.origin=window.location.protocol+"//"+window.location.hostname;const{nonce:_}=_src_storyManager_models_storyManagerConfig__WEBPACK_IMPORTED_MODULE_3__.Tl.getState(),b={html:this.getWidgetDocument(r,_),css:null!==(c=t.extraCss)&&void 0!==c?c:null,js:null!==(u=t.extraJs)&&void 0!==u?u:null,nonce:_};let w=this.getGeneratedPageURL(b);i.onStartLoading&&i.onStartLoading(),i.showLoader=function(e){IAS_OLD.Util.Loader(e)},i.publish=function(){var e=Array.prototype.slice.call(arguments);e.push(f.widgetId),IAS_OLD.Observer.publish.apply(IAS_OLD.Observer,e)},i.onInit=function(){e.onReady&&e.onReady()},i.hideLoader=function(){},i.resize=function(e,t){if(h){h.style.height=e+"px";var r=document.getElementById("iaswidget"+f.widgetId);r&&(r.style.height=e+"px")}},i.resizeWidget=function(t,r){const i=parseInt(t),o=parseInt(r);var n=document.getElementById("iaswidget"+f.widgetId);isFinite(i)&&h&&(h.style.width=i+"px",n&&(n.style.width=i+"px")),isFinite(o)&&h&&(h.style.height=o+"px",n&&(n.style.height=o+"px")),e.onResizeWidget&&e.onResizeWidget()},g=IAS_OLD.Widget.RPC[f.widgetId]=new window.iasRPC.Server(i,(function(e){return!e||(e=e.toLowerCase(),!0)}),{safe:!0});const S={src:"",id:"iaswidget"+f.widgetId,allowTransparency:e.allowTransparency||!1,style:{backgroundColor:e.backgroundColor||"transparent"}};o.fullScreen?(S.style.position="fixed",S.style.left=0,S.style.top=0,S.style.padding=0,S.style.border=0,S.style.zIndex=1002,S.style.width="100%",S.style.height="100%"):(S.width=-1!=y.indexOf("%")?y:parseInt(y)||y,S.height=o.startHeight||"100%",S.style.width="1px",S.style.minWidth="100%",S.style["*width"]="100%"),o.scrolling?S.scrolling="yes":(S.scrolling="no",S.style.overflow="hidden"),o.hidden&&(S.style.display="none"),S.style.colorScheme="auto",(0,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.uM)()?S.srcdoc=w.srcdoc:S.src=w.src,v=IAS_OLD.Widget.RPC[f.widgetId].append(h,S),this.emit("ready"),this.on("widgetLoaded",(()=>{requestAnimationFrame((()=>{n&&n(h,v||(null==h?void 0:h.firstChild),g),l(!0)}))}))}))}_destroyClientWidget(){}destroy(){try{this._destroyClientWidget(),requestAnimationFrame((()=>{try{const e=IAS_OLD.Widget.RPC[this.widgetId];e&&e.destroy(),this.obj&&(this.obj.innerHTML="",this.obj.style.cssText=this.objSavedStyles)}catch(e){console.error(e)}}))}catch(e){console.error(e)}}showBoxUrl(e,t){return(e=(e||IAS_OLD._protocol+"//sdk-narrator.kiozk.ru").replace(/\/?\s*$/,""))+"/"+(t=t.replace(/^\s*\/?/,""))}startLoader(){let e=(0,_src_stories_widget_helpers_media__WEBPACK_IMPORTED_MODULE_5__.gP)(`${_src_storyManager_api_domains__WEBPACK_IMPORTED_MODULE_2__.C.baseUrl}/v0.0.2/dist/loader.gif`);this.loaderContainer.style.background=`url("${e}") center center no-repeat transparent`}stopLoader(){this.loaderContainer.style.display="none"}getGeneratedPageURL({html:e,css:t,js:r,nonce:i}){let o="",n="";null!==t&&(o=`<link rel="stylesheet" type="text/css" href="${(0,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.jp)(t,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.Vd.CSS)}" />`),null!==r&&(n=`<script nonce="${i}">${(0,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.jp)(r,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.Vd.JS)}<\/script>`);const s=`\n <html>\n <head>\n <base href="${document.baseURI}"></base>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <script nonce="${i}">__webpack_nonce__ = "${i}";<\/script>\n ${o}\n ${n}\n </head>\n <body>\n ${e||""}\n </body>\n </html>\n `;null!==t&&(o=`<style nonce="${i}">${t}</style>`),null!==r&&(n=`<script nonce="${i}">${r}<\/script>`);let a=`\n <html>\n <head>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <script nonce="${i}">__webpack_nonce__ = "${i}";<\/script>\n ${o}\n ${n}\n </head>\n <body>\n ${e||""}\n </body>\n </html>\n `;return{src:(0,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.jp)(s,_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.Vd.HTML),srcdoc:a}}getWidgetDocument(e,t){return""}}Widget.count=0,Widget.RPC={};const __WEBPACK_DEFAULT_EXPORT__=Widget;class IAS_OLD{}if(IAS_OLD.version="v1",IAS_OLD.MD5=_md5__WEBPACK_IMPORTED_MODULE_6__.F,IAS_OLD.extend=_src_storyManager_widget_utils__WEBPACK_IMPORTED_MODULE_1__.X$,IAS_OLD._protocol="https:",IAS_OLD._base_domain="",IAS_OLD.Widget=Widget,IAS_OLD.xdConnectionCallbacks?setTimeout((function(){for(var e;e=IAS_OLD.xdConnectionCallbacks.pop();)e()}),0):(IAS_OLD.extend(IAS_OLD,{version:1,_apiKey:null,_session:null,_domain:{main:IAS_OLD._protocol+"//sdk-narrator.kiozk.ru/",api:IAS_OLD._protocol+"//api-narrator.kiozk.ru/"},_path:{login:"authorize",proxy:"fxdm_oauth_proxy.html"},_rootId:"ias_api_transport",_nameTransportPath:"",xdReady:!1}),IAS_OLD.init=function(e){if(IAS_OLD._apiKey=null,!e.apiKey)throw Error("IAS_OLD.init() called without an apiKey");return IAS_OLD._apiKey=e.apiKey,IAS_OLD.userId=e.userId,!0}),IAS_OLD.XDM||(IAS_OLD.XDM={remote:null,init:function(){if(this.remote)return!1;var e=IAS_OLD._domain.api+IAS_OLD._path.proxy;this.remote=new window.iasRPC.Server({onInit:function(){IAS_OLD.xdReady=!0,IAS_OLD.Observer.publish("xdm.init")}}),this.remote.append(document.getElementById(IAS_OLD._rootId),{src:e})},xdHandler:function(code){try{eval("IAS_OLD."+code)}catch(e){}}}),IAS_OLD.Observer||(IAS_OLD.Observer={_subscribers:function(){return this._subscribersMap||(this._subscribersMap={}),this._subscribersMap},publish:function(){var e,t,r=Array.prototype.slice.call(arguments),i=r.shift(),o=this._subscribers()[i];if(o)for(e=0,t=o.length;e<t;e++)null!=o[e]&&o[e].apply(this,r)},subscribe:function(e,t){var r=this._subscribers();if("function"!=typeof t)return!1;r[e]?r[e].push(t):r[e]=[t]},unsubscribe:function(e,t){var r,i,o=this._subscribers()[e];if(!o)return!1;if("function"==typeof t)for(r=0,i=o.length;r<i;r++)o[r]==t&&(o[r]=null);else delete this._subscribers()[e]}}),IAS_OLD.Util||(IAS_OLD.Util={getStyle:function(e,t){var r,i=document.defaultView||window;if(i.getComputedStyle){t=t.replace(/([A-Z])/g,"-$1").toLowerCase();var o=i.getComputedStyle(e,null);o&&(r=o.getPropertyValue(t))}else if(e.currentStyle){var n=t.replace(/\-(\w)/g,(function(e,t){return t.toUpperCase()}));r=e.currentStyle[t]||e.currentStyle[n]}return r},getXY:function(e,t){if(e&&void 0!==e){var r=0,i=0;if(void 0!==e.getBoundingClientRect){var o=e.getBoundingClientRect();r=o.left,i=o.top,t=!0}else if(e.offsetParent)do{r+=e.offsetLeft,i+=e.offsetTop,t&&(r-=e.scrollLeft,i-=e.scrollTop)}while(e=e.offsetParent);return t&&(i+=window.pageYOffset||window.scrollNode&&window.scrollNode.scrollTop||document.documentElement.scrollTop,r+=window.pageXOffset||window.scrollNode&&window.scrollNode.scrollLeft||document.documentElement.scrollLeft),[r,i]}},Loader:function e(t){e.loader||((e.loader=document.createElement("DIV")).innerHTML='<style type="text/css"> @-webkit-keyframes IAS_OLDWidgetsLoaderKeyframes {0%{opacity: 0.2;}30%{opacity: 1;}100%{opacity: 0.2;}} @keyframes IAS_OLDWidgetsLoaderKeyframes {0%{opacity: 0.2;}30%{opacity: 1;}100%{opacity: 0.2;}} .IAS_OLDWidgetsLoader div {width: 7px;height: 7px;-webkit-border-radius: 50%;-khtml-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%;background: #fff;top: 21px;position: absolute;z-index: 2;-o-transition: opacity 350ms linear; transition: opacity 350ms linear;opacity: 0.2;-webkit-animation-duration: 750ms;-o-animation-duration: 750ms;animation-duration: 750ms;-webkit-animation-name: IAS_OLDWidgetsLoaderKeyframes;-o-animation-name: IAS_OLDWidgetsLoaderKeyframes;animation-name: IAS_OLDWidgetsLoaderKeyframes;-webkit-animation-iteration-count: infinite;-o-animation-iteration-count: infinite;animation-iteration-count: infinite;-webkit-transform: translateZ(0);transform: translateZ(0);}</style><div class="IAS_OLDWidgetsLoader" style="position: fixed;left: 50%;top: 50%;margin: -25px -50px;z-index: 1002;height: 50px;width: 100px;"><div style="left: 36px;-webkit-animation-delay: 0ms;-o-animation-delay: 0ms;animation-delay: 0ms;"></div><div style="left: 47px;-webkit-animation-delay: 180ms;-o-animation-delay: 180ms;animation-delay: 180ms;"></div><div style="left: 58px;-webkit-animation-delay: 360ms;-o-animation-delay: 360ms;animation-delay: 360ms;"></div><span style="display: block;background-color: #000;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;-webkit-box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.35);-moz-box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.35);box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.35);position: absolute;left: 0;top: 0;bottom: 0; right: 0;z-index: 1;opacity: 0.7;"></span></div>',document.body.insertBefore(e.loader,document.body.firstChild)),e.loader.style.display=t?"block":"none"},addEvent:function(e,t,r){(r=r||window.document).addEventListener?r.addEventListener(e,t,!1):r.attachEvent&&r.attachEvent("on"+e,t)},removeEvent:function(e,t,r){(r=r||window.document).removeEventListener?r.removeEventListener(e,t,!1):r.detachEvent&&r.detachEvent("on"+e,t)},ss:function(e,t){IAS_OLD.extend(e.style,t,!0)},getScroll:function(){if(void 0!==window.pageYOffset)return[pageXOffset,pageYOffset];var e=document,t=e.documentElement,r=e.body;return[t.scrollLeft||r.scrollLeft||0,t.scrollTop||r.scrollTop||0]}}),window.IAS_OLDReady&&window.IAS_OLDReady._e)for(let e=0;e<window.IAS_OLDReady._e.length;e++)setTimeout(window.IAS_OLDReady._e[e],0);window.iasAsyncInitCallbacks&&window.iasAsyncInitCallbacks.length&&setTimeout((function(){for(var e;e=window.iasAsyncInitCallbacks.pop();)try{e()}catch(e){try{console.error(e)}catch(e){}}}),0)},3904:(e,t,r)=>{"use strict";function i(e,t,r){for(const i in t)t.hasOwnProperty(i)&&(r||void 0===e[i])&&(e[i]=t[i]);return e}var o;function n(e,t){const r=new Blob([e],{type:t});return URL.createObjectURL(r)}r.d(t,{Vd:()=>o,X$:()=>i,jp:()=>n,uM:()=>l}),function(e){e.CSS="text/css",e.JS="text/javascript",e.HTML="text/html"}(o||(o={}));let s=!1,a=!1;const l=()=>{if(!a){const e=document.createElement("iframe");s="srcdoc"in e,a=!0}return s}},4406:(e,t,r)=>{"use strict";r.r(t),r.d(t,{NIL:()=>O,parse:()=>u,stringify:()=>s.A,v1:()=>d,v3:()=>b,v4:()=>w.A,v5:()=>k,validate:()=>c.A,version:()=>L});var i,o,n=r(8062),s=r(9834),a=0,l=0;const d=function(e,t,r){var d=t&&r||0,c=t||new Array(16),u=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:o;if(null==u||null==p){var f=e.random||(e.rng||n.A)();null==u&&(u=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=o=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:l+1,v=h-a+(g-l)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||h>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,l=g,o=p;var m=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;c[d++]=m>>>24&255,c[d++]=m>>>16&255,c[d++]=m>>>8&255,c[d++]=255&m;var y=h/4294967296*1e4&268435455;c[d++]=y>>>8&255,c[d++]=255&y,c[d++]=y>>>24&15|16,c[d++]=y>>>16&255,c[d++]=p>>>8|128,c[d++]=255&p;for(var _=0;_<6;++_)c[d+_]=u[_];return t||(0,s.A)(c)};var c=r(3186);const u=function(e){if(!(0,c.A)(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function p(e,t,r){function i(e,i,o,n){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof i&&(i=u(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(i),a.set(e,i.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){n=n||0;for(var l=0;l<16;++l)o[n+l]=a[l];return o}return(0,s.A)(a)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function f(e){return 14+(e+64>>>9<<4)+1}function h(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function g(e,t,r,i,o,n){return h((s=h(h(t,e),h(i,n)))<<(a=o)|s>>>32-a,r);var s,a}function v(e,t,r,i,o,n,s){return g(t&r|~t&i,e,t,o,n,s)}function m(e,t,r,i,o,n,s){return g(t&i|r&~i,e,t,o,n,s)}function y(e,t,r,i,o,n,s){return g(t^r^i,e,t,o,n,s)}function _(e,t,r,i,o,n,s){return g(r^(t|~i),e,t,o,n,s)}const b=p("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,i="0123456789abcdef",o=0;o<r;o+=8){var n=e[o>>5]>>>o%32&255,s=parseInt(i.charAt(n>>>4&15)+i.charAt(15&n),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[f(t)-1]=t;for(var r=1732584193,i=-271733879,o=-1732584194,n=271733878,s=0;s<e.length;s+=16){var a=r,l=i,d=o,c=n;r=v(r,i,o,n,e[s],7,-680876936),n=v(n,r,i,o,e[s+1],12,-389564586),o=v(o,n,r,i,e[s+2],17,606105819),i=v(i,o,n,r,e[s+3],22,-1044525330),r=v(r,i,o,n,e[s+4],7,-176418897),n=v(n,r,i,o,e[s+5],12,1200080426),o=v(o,n,r,i,e[s+6],17,-1473231341),i=v(i,o,n,r,e[s+7],22,-45705983),r=v(r,i,o,n,e[s+8],7,1770035416),n=v(n,r,i,o,e[s+9],12,-1958414417),o=v(o,n,r,i,e[s+10],17,-42063),i=v(i,o,n,r,e[s+11],22,-1990404162),r=v(r,i,o,n,e[s+12],7,1804603682),n=v(n,r,i,o,e[s+13],12,-40341101),o=v(o,n,r,i,e[s+14],17,-1502002290),r=m(r,i=v(i,o,n,r,e[s+15],22,1236535329),o,n,e[s+1],5,-165796510),n=m(n,r,i,o,e[s+6],9,-1069501632),o=m(o,n,r,i,e[s+11],14,643717713),i=m(i,o,n,r,e[s],20,-373897302),r=m(r,i,o,n,e[s+5],5,-701558691),n=m(n,r,i,o,e[s+10],9,38016083),o=m(o,n,r,i,e[s+15],14,-660478335),i=m(i,o,n,r,e[s+4],20,-405537848),r=m(r,i,o,n,e[s+9],5,568446438),n=m(n,r,i,o,e[s+14],9,-1019803690),o=m(o,n,r,i,e[s+3],14,-187363961),i=m(i,o,n,r,e[s+8],20,1163531501),r=m(r,i,o,n,e[s+13],5,-1444681467),n=m(n,r,i,o,e[s+2],9,-51403784),o=m(o,n,r,i,e[s+7],14,1735328473),r=y(r,i=m(i,o,n,r,e[s+12],20,-1926607734),o,n,e[s+5],4,-378558),n=y(n,r,i,o,e[s+8],11,-2022574463),o=y(o,n,r,i,e[s+11],16,1839030562),i=y(i,o,n,r,e[s+14],23,-35309556),r=y(r,i,o,n,e[s+1],4,-1530992060),n=y(n,r,i,o,e[s+4],11,1272893353),o=y(o,n,r,i,e[s+7],16,-155497632),i=y(i,o,n,r,e[s+10],23,-1094730640),r=y(r,i,o,n,e[s+13],4,681279174),n=y(n,r,i,o,e[s],11,-358537222),o=y(o,n,r,i,e[s+3],16,-722521979),i=y(i,o,n,r,e[s+6],23,76029189),r=y(r,i,o,n,e[s+9],4,-640364487),n=y(n,r,i,o,e[s+12],11,-421815835),o=y(o,n,r,i,e[s+15],16,530742520),r=_(r,i=y(i,o,n,r,e[s+2],23,-995338651),o,n,e[s],6,-198630844),n=_(n,r,i,o,e[s+7],10,1126891415),o=_(o,n,r,i,e[s+14],15,-1416354905),i=_(i,o,n,r,e[s+5],21,-57434055),r=_(r,i,o,n,e[s+12],6,1700485571),n=_(n,r,i,o,e[s+3],10,-1894986606),o=_(o,n,r,i,e[s+10],15,-1051523),i=_(i,o,n,r,e[s+1],21,-2054922799),r=_(r,i,o,n,e[s+8],6,1873313359),n=_(n,r,i,o,e[s+15],10,-30611744),o=_(o,n,r,i,e[s+6],15,-1560198380),i=_(i,o,n,r,e[s+13],21,1309151649),r=_(r,i,o,n,e[s+4],6,-145523070),n=_(n,r,i,o,e[s+11],10,-1120210379),o=_(o,n,r,i,e[s+2],15,718787259),i=_(i,o,n,r,e[s+9],21,-343485551),r=h(r,a),i=h(i,l),o=h(o,d),n=h(n,c)}return[r,i,o,n]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(f(t)),i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))}));var w=r(7981);function S(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:case 3:return t^r^i;case 2:return t&r^t&i^r&i}}function C(e,t){return e<<t|e>>>32-t}const k=p("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var o=0;o<i.length;++o)e.push(i.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var n=e.length/4+2,s=Math.ceil(n/16),a=new Array(s),l=0;l<s;++l){for(var d=new Uint32Array(16),c=0;c<16;++c)d[c]=e[64*l+4*c]<<24|e[64*l+4*c+1]<<16|e[64*l+4*c+2]<<8|e[64*l+4*c+3];a[l]=d}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var u=0;u<s;++u){for(var p=new Uint32Array(80),f=0;f<16;++f)p[f]=a[u][f];for(var h=16;h<80;++h)p[h]=C(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var g=r[0],v=r[1],m=r[2],y=r[3],_=r[4],b=0;b<80;++b){var w=Math.floor(b/20),k=C(g,5)+S(w,v,m,y)+_+t[w]+p[b]>>>0;_=y,y=m,m=C(v,30)>>>0,v=g,g=k}r[0]=r[0]+g>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+_>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),O="00000000-0000-0000-0000-000000000000";const L=function(e){if(!(0,c.A)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},8062:(e,t,r)=>{"use strict";var i;r.d(t,{A:()=>n});var o=new Uint8Array(16);function n(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)}},9834:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});for(var i=r(3186),o=[],n=0;n<256;++n)o.push((n+256).toString(16).substr(1));const s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!(0,i.A)(r))throw TypeError("Stringified UUID is invalid");return r}},7981:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(8062),o=r(9834);const n=function(e,t,r){var n=(e=e||{}).random||(e.rng||i.A)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=n[s];return t}return(0,o.A)(n)}},3186:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const o=function(e){return"string"==typeof e&&i.test(e)}},7791:(e,t,r)=>{"use strict";function i(e){const t=window.getComputedStyle(e),r=t.transform||t.webkitTransform||t.mozTransform;if("none"===r)return{x:0,y:0,z:0};const i=r.includes("3d")?"3d":"2d",o=r.match(/matrix.*\((.+)\)/)[1].split(", ");return"2d"===i?{x:isNaN(o[4])?0:o[4],y:isNaN(o[5])?0:o[5],z:0}:"3d"===i?{x:isNaN(o[12])?0:o[12],y:isNaN(o[13])?0:o[13],z:isNaN(o[14])?0:o[14]}:void 0}function o(e){return Object.keys(e).reduce(((t,r)=>t+r.split(/(?=[A-Z])/).join("-").toLowerCase()+":"+e[r]+";"),"")}r.d(t,{j9:()=>i,ky:()=>o})},3665:(e,t,r)=>{"use strict";function i(e){if(!e.iasRPC){var t={},r=[],i={};e.iasRPC={_id:0,Server:function(r,i,o){this.methods=r||{},this.filter=i,this.options=o||{},this.id=e.iasRPC._id++,this.key=function(){for(var e="",t=0;t<5;t++)e+=Math.ceil(15*Math.random()).toString(16);return e}(),this.frameName="fXD"+this.key,this.server=!0;var n=this;this.methods["%init%"]=this.methods.__fxdm_i=function(){e.iasRPC.run(n.id),n.methods.onInit&&n.methods.onInit()},t[this.key]=[l,this]},Client:function(r,i){if(this.methods=r||{},this.options=i||{},this.id=e.iasRPC._id++,this.client=!0,e.iasRPC.run(this.id),0!==window.name.indexOf("fXD"))throw Error("Wrong window.name property.");this.key=window.name.substr(3),this.caller=window.parent,t[this.key]=[l,this],e.iasRPC.on("helper",(function(){e.iasRPC.onClientStart(this)}),this),s((function(e){e.send(this,e.json.stringify(["%init%"]));var t=this.methods;setTimeout((function(){t.onInit&&t.onInit()}),0)}),this)},onMessage:function(e){var r=e.data;if(!r)return!1;if("string"!=typeof r&&!(r instanceof String))return!1;var i=r.substr(0,5);if(t[i]){var o=t[i][1];!o||o.filter&&!o.filter(e.origin)||t[i][0](r.substr(6),o)}},setJSON:function(e){i.json=e},getJSON:function(e){if(!e)return i.json;s((function(t){e(t.json)}))},setEnv:function(e){for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);a()},_q:{},on:function(e,t,r){this._q[e]||(this._q[e]=[]),-1==this._q[e]?t.apply(r):this._q[e].push([t,r])},run:function(e){for(var t=(this._q[e]||[]).length,r=0;r<t;r++)this._q[e][r][0].apply(this._q[e][r][1]);this._q[e]=-1},waitFor:o},e.iasRPC.Server.prototype.start=function(t,r){if(t.contentWindow)this.caller=t.contentWindow,this.frame=t,e.iasRPC.on("helper",(function(){e.iasRPC.onServerStart(this)}),this);else{var i=this;(r=r||0)<50&&setTimeout((function(){i.start.apply(i,[t,r+1])}),100)}},e.iasRPC.Server.prototype.destroy=function(){delete t[this.key]},e.iasRPC.Server.prototype.append=function(e,t,r){var i=document.createElement("div");i.innerHTML='<iframe name="'+this.frameName+'" '+(r||"")+"></iframe>";var o=i.firstChild,n=this;return setTimeout((function(){o.frameBorder="0",t&&d(o,t),e.insertBefore(o,e.firstChild),n.start(o)}),0),o},e.iasRPC.Client.prototype.callMethod=e.iasRPC.Server.prototype.callMethod=function(){for(var t=Array.prototype.slice.call(arguments),r=t.shift(),i=0,a=t.length;i<a;i++)if("function"==typeof t[i]){this.funcsCount=(this.funcsCount||0)+1;var l=t[i],d="_func"+this.funcsCount;this.methods[d]=function(){l.apply(this,arguments),delete this.methods[d]},t[i]={_func:this.funcsCount}}else this.options.safe&&(t[i]=n(t[i],!0));o(this,"caller",(function(){e.iasRPC.on(this.id,(function(){s((function(e){e.send(this,e.json.stringify([r,t]))}),this)}),this)}),this)},i.json={parse:e.JSON.parse,stringify:e.JSON.stringify},e.postMessage&&(i.protocol="p",i.send=function(e,t){var r=e.frame?e.frame.contentWindow:e.caller;if(r)try{r.postMessage(e.key+":"+t,"*")}catch(i){window.postMessage.call(r,e.key+":"+t,"*")}},e.addEventListener?e.addEventListener("message",e.iasRPC.onMessage,!1):e.attachEvent("onmessage",e.iasRPC.onMessage),a())}function o(e,t,r,i,n){e[t]?r.apply(i):(n=n||0)<1e3&&setTimeout((function(){o(e,t,r,i,n+1)}),0)}function n(e,t){var r;switch(typeof e){case"string":r=t?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):e.replace(/&#039;/g,"'").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&");break;case"object":if(null===e)r=e;else if("[object Array]"===Object.prototype.toString.apply(e)){r=[];for(var i=0,o=e.length;i<o;i++)r[i]=n(e[i],t)}else for(var s in r={},e)Object.hasOwnProperty.call(e,s)&&(r[s]=n(e[s],t));break;default:r=e}return r}function s(e,t){i.loaded?e.apply(t,[i]):r.push([t,e])}function a(){i.loaded=!0;for(var e=0,t=r.length;e<t;e++)r[e][1].apply(r[e][0],[i])}function l(e,t){s((function(r){var i=r.json.parse(e);if(i[0]){i[1]||(i[1]=[]);for(var o=0,s=i[1].length;o<s;o++)if(i[1][o]&&i[1][o]._func){var a=i[1][o]._func;i[1][o]=function(){var e=Array.prototype.slice.call(arguments);e.unshift("_func"+a),t.callMethod.apply(t,e)}}else t.options.safe&&(i[1][o]=n(i[1][o],!1));setTimeout((function(){if(!t.methods[i[0]])throw Error("iasRPC: Method "+i[0]+" is undefined");t.methods[i[0]].apply(t,i[1])}),0)}}))}function d(e,t){for(var r in t)e[r]&&"object"==typeof e[r]?d(e[r],t[r]):e[r]=t[r]}}r.d(t,{A:()=>i})},5946:(e,t,r)=>{"use strict";function i(e){var t,r=function(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r},i=function(e,t,i,o,n,s){return r(function(e,t){return e<<t|e>>>32-t}(r(r(t,e),r(o,s)),n),i)},o=function(e,t,r,o,n,s,a){return i(t&r|~t&o,e,t,n,s,a)},n=function(e,t,r,o,n,s,a){return i(t&o|r&~o,e,t,n,s,a)},s=function(e,t,r,o,n,s,a){return i(t^r^o,e,t,n,s,a)},a=function(e,t,r,o,n,s,a){return i(r^(t|~o),e,t,n,s,a)};return function(e){for(var t,r="0123456789abcdef",i="",o=0,n=e.length;o<n;o++)t=e.charCodeAt(o),i+=r.charAt(t>>>4&15)+r.charAt(15&t);return i}(function(e){for(var t="",r=0,i=32*e.length;r<i;r+=8)t+=String.fromCharCode(e[r>>5]>>>r%32&255);return t}(function(e,t){var i,l,d,c,u=1732584193,p=-271733879,f=-1732584194,h=271733878;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var g=0,v=e.length;g<v;g+=16)i=u,l=p,d=f,c=h,u=o(u,p,f,h,e[g+0],7,-680876936),h=o(h,u,p,f,e[g+1],12,-389564586),f=o(f,h,u,p,e[g+2],17,606105819),p=o(p,f,h,u,e[g+3],22,-1044525330),u=o(u,p,f,h,e[g+4],7,-176418897),h=o(h,u,p,f,e[g+5],12,1200080426),f=o(f,h,u,p,e[g+6],17,-1473231341),p=o(p,f,h,u,e[g+7],22,-45705983),u=o(u,p,f,h,e[g+8],7,1770035416),h=o(h,u,p,f,e[g+9],12,-1958414417),f=o(f,h,u,p,e[g+10],17,-42063),p=o(p,f,h,u,e[g+11],22,-1990404162),u=o(u,p,f,h,e[g+12],7,1804603682),h=o(h,u,p,f,e[g+13],12,-40341101),f=o(f,h,u,p,e[g+14],17,-1502002290),p=o(p,f,h,u,e[g+15],22,1236535329),u=n(u,p,f,h,e[g+1],5,-165796510),h=n(h,u,p,f,e[g+6],9,-1069501632),f=n(f,h,u,p,e[g+11],14,643717713),p=n(p,f,h,u,e[g+0],20,-373897302),u=n(u,p,f,h,e[g+5],5,-701558691),h=n(h,u,p,f,e[g+10],9,38016083),f=n(f,h,u,p,e[g+15],14,-660478335),p=n(p,f,h,u,e[g+4],20,-405537848),u=n(u,p,f,h,e[g+9],5,568446438),h=n(h,u,p,f,e[g+14],9,-1019803690),f=n(f,h,u,p,e[g+3],14,-187363961),p=n(p,f,h,u,e[g+8],20,1163531501),u=n(u,p,f,h,e[g+13],5,-1444681467),h=n(h,u,p,f,e[g+2],9,-51403784),f=n(f,h,u,p,e[g+7],14,1735328473),p=n(p,f,h,u,e[g+12],20,-1926607734),u=s(u,p,f,h,e[g+5],4,-378558),h=s(h,u,p,f,e[g+8],11,-2022574463),f=s(f,h,u,p,e[g+11],16,1839030562),p=s(p,f,h,u,e[g+14],23,-35309556),u=s(u,p,f,h,e[g+1],4,-1530992060),h=s(h,u,p,f,e[g+4],11,1272893353),f=s(f,h,u,p,e[g+7],16,-155497632),p=s(p,f,h,u,e[g+10],23,-1094730640),u=s(u,p,f,h,e[g+13],4,681279174),h=s(h,u,p,f,e[g+0],11,-358537222),f=s(f,h,u,p,e[g+3],16,-722521979),p=s(p,f,h,u,e[g+6],23,76029189),u=s(u,p,f,h,e[g+9],4,-640364487),h=s(h,u,p,f,e[g+12],11,-421815835),f=s(f,h,u,p,e[g+15],16,530742520),p=s(p,f,h,u,e[g+2],23,-995338651),u=a(u,p,f,h,e[g+0],6,-198630844),h=a(h,u,p,f,e[g+7],10,1126891415),f=a(f,h,u,p,e[g+14],15,-1416354905),p=a(p,f,h,u,e[g+5],21,-57434055),u=a(u,p,f,h,e[g+12],6,1700485571),h=a(h,u,p,f,e[g+3],10,-1894986606),f=a(f,h,u,p,e[g+10],15,-1051523),p=a(p,f,h,u,e[g+1],21,-2054922799),u=a(u,p,f,h,e[g+8],6,1873313359),h=a(h,u,p,f,e[g+15],10,-30611744),f=a(f,h,u,p,e[g+6],15,-1560198380),p=a(p,f,h,u,e[g+13],21,1309151649),u=a(u,p,f,h,e[g+4],6,-145523070),h=a(h,u,p,f,e[g+11],10,-1120210379),f=a(f,h,u,p,e[g+2],15,718787259),p=a(p,f,h,u,e[g+9],21,-343485551),u=r(u,i),p=r(p,l),f=r(f,d),h=r(h,c);return[u,p,f,h]}(function(e){var t,r,i=Array(e.length>>2);for(t=0,r=i.length;t<r;t++)i[t]=0;for(t=0,r=8*e.length;t<r;t+=8)i[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return i}(t=function(e){for(var t,r,i="",o=-1,n=e.length;++o<n;)t=e.charCodeAt(o),r=o+1<n?e.charCodeAt(o+1):0,55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t=65536+((1023&t)<<10)+(1023&r),o++),t<=127?i+=String.fromCharCode(t):t<=2047?i+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?i+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(i+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return i}(e)),8*t.length)))}r.d(t,{F:()=>i})},9155:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__9155__},9514:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__9514__},3373:(e,t)=>{var r;
31
23
  /*!
32
24
  Copyright (c) 2018 Jed Watson.
33
25
  Licensed under the MIT License (MIT), see
34
26
  http://jedwatson.github.io/classnames
35
- */!function(){"use strict";var i={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)i.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},1810:(e,t,r)=>{"use strict";function i(e,t){for(let r in e)t(e[r],r)}function n(e,t){e.forEach(t)}function o(e,t){if(!e)throw Error(t)}function s({node:e=[],from:t,source:r,parent:i=t||r,to:o,target:s,child:a=o||s,scope:l={},meta:d={},family:c={type:"regular"},regional:u}={}){let p=ee(i),f=ee(c.links),h=ee(c.owners),g=[];n(e,(e=>e&&W(g,e)));let v={id:V(),seq:g,next:ee(a),meta:d,scope:l,family:{type:c.type||"crosslink",links:f,owners:h}};return n(f,(e=>W(L(e),v))),n(h,(e=>W(x(e),v))),n(p,(e=>W(e.next,v))),u&&K&&Z(E(K),[v]),v}function a(e,t,r){let i,o=Fe,s=null,a=Te;if(e.target&&(t=e.params,r=e.defer,i=e.meta,o="page"in e?e.page:o,e.stack&&(s=e.stack),a=R(e)||a,e=e.target),a&&Te&&a!==Te&&(Te=null),Array.isArray(e))for(let r=0;r<e.length;r++)xe("pure",o,O(e[r]),s,t[r],a,i);else xe("pure",o,O(e),s,t,a,i);if(r&&!Re)return;let l,d,c,u,p,f,h={isRoot:Re,currentPage:Fe,scope:Te,isWatch:Ie,isPure:Pe};Re=0;e:for(;u=Le();){let{idx:e,stack:t,type:r}=u;c=t.node,Fe=p=t.page,Te=R(t),p?f=p.reg:Te&&(f=Te.reg);let i=!!p,o=!!Te,s={fail:0,scope:c.scope};l=d=0;for(let n=e;n<c.seq.length&&!l;n++){let a=c.seq[n];if(a.order){let{priority:i,barrierID:o}=a.order,s=o?p?`${p.fullID}_${o}`:o:0;if(n!==e||r!==i){o?Me.has(s)||(Me.add(s),Ae(n,t,i,o)):Ae(n,t,i);continue e}o&&Me.delete(s)}switch(a.type){case"mov":{let e,r=a.data;switch(r.from){case k:e=E(t);break;case"a":case"b":e=t[r.from];break;case"value":e=r.store;break;case"store":if(f&&!f[r.store.id])if(i){let e=Be(p,r.store.id);t.page=p=e,e?f=e.reg:o?($e(Te,r.store,0,1,r.softRead),f=Te.reg):f=void 0}else o&&$e(Te,r.store,0,1,r.softRead);e=be(f&&f[r.store.id]||r.store)}switch(r.to){case k:t.value=e;break;case"a":case"b":t[r.to]=e;break;case"store":Ue(p,Te,c,r.target).current=e}break}case"compute":let e=a.data;if(e.fn){Ie="watch"===I(c,"op"),Pe=e.pure;let r=e.safe?(0,e.fn)(E(t),s.scope,t):Ge(s,e.fn,t);e.filter?d=!r:t.value=r,Ie=h.isWatch,Pe=h.isPure}}l=s.fail||d}if(Ne&&Ne(t,s),!l){let e=E(t),r=R(t);if(n(c.next,(i=>{xe("child",p,i,t,e,r)})),r){I(c,"needFxCounter")&&xe("child",p,r.fxCount,t,e,r),I(c,"storeChange")&&xe("child",p,r.storeChange,t,e,r),I(c,"warnSerialize")&&xe("child",p,r.warnSerializeNode,t,e,r);let i=r.additionalLinks[c.id];i&&n(i,(i=>{xe("child",p,i,t,e,r)}))}}}Re=h.isRoot,Fe=h.currentPage,Te=R(h)}function l(e,t="combine"){let r=t+"(",n="",o=0;return i(e,(e=>{o<25&&(null!=e&&(r+=n,r+=j(e)?F(e).fullName:e.toString()),o+=1,n=", ")})),r+")"}function d(e,t){let r,i,n=e;if(t){let n=F(t);0===e.length?(r=n.path,i=n.fullName):(r=n.path.concat([e]),i=0===n.fullName.length?e:n.fullName+"/"+e)}else r=0===e.length?[]:[e],i=e;return{shortName:n,fullName:i,path:r}}function c(e,t){let r=t?e:e[0];ne(r);let i=r.or,n=r.and;if(n){let r=t?n:n[0];if(te(r)&&"and"in r){let r=c(n,t);e=r[0],i={...i,...r[1]}}else e=n}return[e,i]}function u(e,...t){let r=X();if(r){let i=r.handlers[e];if(i)return i(r,...t)}}function p(e,t){let r=qe({or:t,and:"string"==typeof e?{name:e}:e}),i=(e,...t)=>($(!I(i,"derived"),"call of derived event","createEvent"),$(!Pe,"unit call from pure function","operators like sample"),Fe?((e,t,r,i)=>{let n=Fe,o=null;if(t)for(o=Fe;o&&o.template!==t;)o=T(o);De(o);let s=e.create(r,i);return De(n),s})(i,n,e,t):i.create(e,t)),n=X(),o=Object.assign(i,{graphite:s({meta:et(r.actualOp||"event",i,r),regional:1}),create:e=>(a({target:i,params:e,scope:Te}),e),watch:e=>Je(i,e),map:e=>tt(i,C,e,[ye()]),filter:e=>tt(i,"filter",e.fn?e:e.fn,[ye(ce,1)]),filterMap:e=>tt(i,"filterMap",e,[ye(),ve((e=>!ie(e)),1)]),prepend(e){let t=p("* → "+i.shortName,{parent:T(i)});return u("eventPrepend",O(t)),Qe(t,i,[ye()],"prepend",e),Ze(i,t),t}});return null!=r&&r.domain&&r.domain.hooks.event(o),P(o,"id",o.graphite.id),Q(o.graphite),o}function f(e,t,r,i){return se(r,t,"first argument"),o(re(i),"second argument should be a function"),$(!I(e,"derived"),`${t} in derived store`,`${t} in store created via createStore`),n(Array.isArray(r)?r:[r],(t=>{e.off(t),M(e).set(t,Ke(rt(t,e,"on",de,i)))})),e}function h(e,t){let r=qe(t),i=_e(e),l=p({named:"updates",derived:1});u("storeBase",i);let d=i.id,c={subscribers:new Map,updates:l,defaultState:e,stateRef:i,getState(){let e,t=i;if(Fe){let t=Fe;for(;t&&!t.reg[d];)t=T(t);t&&(e=t)}return!e&&Te&&($e(Te,i,1),e=Te),e&&(t=e.reg[d]),be(t)},setState:e=>a({target:c,params:e,defer:1,scope:Te}),reset:(...e)=>(n(e,(e=>f(c,".reset",e,(()=>c.defaultState)))),c),on:(e,t)=>f(c,".on",e,t),off(e){let t=M(c).get(e);return t&&(t(),M(c).delete(e)),c},map(e,t){let r,n;te(e)&&(r=e,e=e.fn),$(ie(t),"second argument of store.map","updateFilter");let o=c.getState();X()?n=null:ie(o)||(n=e(o,t));let s=h(n,{name:`${c.shortName} → *`,derived:1,and:r}),a=rt(c,s,C,le,e);return we(A(s),{type:C,fn:e,from:i}),A(s).noInit=1,u("storeMap",i,a),s},watch(e,t){if(!t||!j(e)){let t=Je(c,e);return u("storeWatch",i,e)||e(c.getState()),t}return o(re(t),"second argument should be a function"),e.watch((e=>t(c.getState(),e)))}},g=et("store",c,r),v=c.defaultConfig.updateFilter;c.graphite=s({scope:{state:i,fn:v},node:[ve(((e,t,r)=>(r.scope&&!r.scope.reg[i.id]&&(r.b=1),e))),me(i),ve(((e,t,{a:r,b:i})=>!ie(e)&&(e!==r||i)),1),v&&ye(le,1),fe({from:k,target:i})],child:l,meta:{...g,defaultState:e},regional:1}),P(c,"id",c.graphite.id),P(c,"rootStateRefId",d);let m=I(c,"serialize"),y=I(c,"derived"),_="ignore"===m,b=I(c,"sid");return b&&(P(c,"storeChange",1),i.sid=b),b||_||y||P(c,"warnSerialize",1),o(y||!ie(e),"current state can't be undefined, use null instead"),Z(c,[l]),null!=r&&r.domain&&r.domain.hooks.store(c),y||(c.reinit=p({named:"reinit"}),c.reset(c.reinit)),i.meta=c.graphite.meta,Q(c.graphite),c}function g(...e){let t,r,i;[e,i]=c(e);let n,s,a,l=e[e.length-1];if(re(l)?(r=e.slice(0,-1),t=l):r=e,1===r.length){let e=r[0];B(e)||(n=e,s=1)}if(!s&&(n=r,t)){a=1;let e=t;t=t=>e(...t)}return o(te(n),"shape should be an object"),it(Array.isArray(n),!a,n,i,t)}function v(){let e={};return e.req=new Promise(((t,r)=>{e.rs=t,e.rj=r})),e.req.catch((()=>{})),e}function m(e,t={}){let r=qe(re(e)?{handler:e}:e,t),i=p(re(e)?{handler:e}:e,{...t,actualOp:"effect"}),n=O(i);P(n,"op",i.kind="effect"),i.use=e=>(o(re(e),".use argument should be a function"),g.scope.handler=e,i),i.use.getCurrent=()=>g.scope.handler;let l=i.finally=p({named:"finally",derived:1}),d=i.done=l.filterMap({named:"done",fn({status:e,params:t,result:r}){if("done"===e)return{params:t,result:r}}}),c=i.fail=l.filterMap({named:"fail",fn({status:e,params:t,error:r}){if("fail"===e)return{params:t,error:r}}}),u=i.doneData=d.map({named:"doneData",fn:({result:e})=>e}),f=i.failData=c.map({named:"failData",fn:({error:e})=>e}),g=s({scope:{handler:i.defaultConfig.handler||(()=>o(0,`no handler used in ${i.getType()}`))},node:[ve(((e,t,r)=>{let n=t.handler,o=R(r);if(o){let e=o.handlers.unitMap.get(i)||o.handlers.sidMap[i.sid];e&&(n=e)}return e.handler=n,e}),0,1),ve((({params:e,req:t,handler:r,args:i=[e]},n,o)=>{let s=ot(o),a=st(e,t,1,l,o,s),d=st(e,t,0,l,o,s),[c,u]=nt(r,d,i);c&&(te(u)&&re(u.then)?u.then(a,d):a(u))}),0,1)],meta:{op:"fx",fx:"runner"}});n.scope.runner=g,W(n.seq,ve(((e,{runner:t},r)=>{let i=T(r)?{params:e,req:{rs(e){},rj(e){}}}:e;return r.meta||(r.meta={fxID:Y()}),a({target:t,params:i,defer:1,scope:R(r),meta:r.meta}),i.params}),0,1)),i.create=e=>{let t=v(),r={params:e,req:t};if(Te&&!Ie){let e=Te;t.req.finally((()=>{je(e)})).catch((()=>{}))}return a({target:i,params:r,scope:Te}),t.req};let m=i.inFlight=h(0,{serialize:"ignore",named:(I(i,"name")||i.graphite.id)+".inFlight"}).on(i,(e=>e+1)).on(l,(e=>e-1)).map({fn:e=>e,named:"inFlight"});P(l,"needFxCounter","dec"),P(i,"needFxCounter",1);let y=i.pending=m.map({fn:e=>e>0,named:"pending"});return Z(i,[l,d,c,u,f,y,m]),null!=r&&r.domain&&r.domain.hooks.effect(i),i}function y(...e){let[[t,r],n]=c(e),o={};return i(r,((e,r)=>{let i=o[r]=p(r,{parent:T(t),config:n});t.on(i,e),Ze(t,i)})),o}function _(e,t){se(e,"merge","first argument");let r=p({name:l(e,"merge"),derived:1,and:t});return Qe(e,r,[],"merge"),r}function b(e,t){let r=0;return n(lt,(i=>{i in e&&(o(null!=e[i],dt(t,i)),r=1)})),r}function w(...e){let t,r,i,n,[[o,s,a],l]=c(e),d=1;return ie(s)&&te(o)&&b(o,"sample")&&(s=o.clock,a=o.fn,d=!o.greedy,n=o.filter,t=o.target,r=o.name,i=o.sid,o=o.source),ct("sample",s,o,n,t,a,r,l,d,1,0,i)}r.d(t,{EH:()=>m,XM:()=>w,lh:()=>p,sY:()=>Xe,xP:()=>y,y$:()=>h});let S="undefined"!=typeof Symbol&&Symbol.observable||"@@observable",C="map",k="stack",O=e=>e.graphite||e,L=e=>e.family.owners,x=e=>e.family.links,A=e=>e.stateRef,E=e=>e.value,M=e=>e.subscribers,T=e=>e.parent,R=e=>e.scope,I=(e,t)=>O(e).meta[t],P=(e,t,r)=>O(e).meta[t]=r,F=e=>e.compositeName,j=e=>(re(e)||te(e))&&"kind"in e;const D=e=>t=>j(t)&&t.kind===e;let B=D("store"),N=(D("event"),D("effect"),D("domain"));D("scope");let U=(e,t)=>{let r=e.indexOf(t);-1!==r&&e.splice(r,1)},W=(e,t)=>e.push(t),$=(e,t,r)=>!e&&console.error(`${t} is deprecated${r?`, use ${r} instead`:""}`);const G=()=>{let e=0;return()=>""+ ++e};let q,z=G(),H=G(),V=G(),Y=G(),K=null,Q=e=>{q&&q(e,K)},X=()=>K&&K.template,J=e=>(e&&K&&K.sidRoot&&(e=`${K.sidRoot}|${e}`),e),Z=(e,t)=>{let r=O(e);n(t,(e=>{let t=O(e);"domain"!==r.family.type&&(t.family.type="crosslink"),W(L(t),r),W(x(r),t)}))},ee=(e=[])=>(Array.isArray(e)?e:[e]).flat().map(O),te=e=>"object"==typeof e&&null!==e,re=e=>"function"==typeof e,ie=e=>void 0===e,ne=e=>o(te(e)||re(e),"expect first argument be an object");const oe=(e,t,r,i)=>o(!(!te(e)&&!re(e)||!("family"in e)&&!("graphite"in e)),`${t}: expect ${r} to be a unit (store, event or effect)${i}`);let se=(e,t,r)=>{Array.isArray(e)?n(e,((e,i)=>oe(e,t,`${i} item of ${r}`,""))):oe(e,t,r," or array of units")},ae=(e,t,r="target")=>n(ee(t),(t=>$(!I(t,"derived"),`${e}: derived unit in "${r}"`,"createEvent/createStore"))),le=(e,{fn:t},{a:r})=>t(e,r),de=(e,{fn:t},{a:r})=>t(r,e),ce=(e,{fn:t})=>t(e);const ue=(e,t,r,i)=>{let n={id:H(),type:e,data:t};return r&&(n.order={priority:r},i&&(n.order.barrierID=++pe)),n};let pe=0,fe=({from:e="store",store:t,target:r,to:i=(r?"store":k),batch:n,priority:o})=>ue("mov",{from:e,store:t,to:i,target:r},o,n),he=({fn:e,batch:t,priority:r,safe:i=0,filter:n=0,pure:o=0})=>ue("compute",{fn:e,safe:i,filter:n,pure:o},r,t),ge=({fn:e})=>he({fn:e,priority:"effect"}),ve=(e,t,r)=>he({fn:e,safe:1,filter:t,priority:r&&"effect"}),me=(e,t,r)=>fe({store:e,to:t?k:"a",priority:r&&"sampler",batch:1}),ye=(e=ce,t)=>he({fn:e,pure:1,filter:t}),_e=e=>({id:H(),current:e}),be=({current:e})=>e,we=(e,t)=>{e.before||(e.before=[]),W(e.before,t)},Se=null;const Ce=(e,t)=>{if(!e)return t;if(!t)return e;let r;return(e.v.type===t.v.type&&e.v.id>t.v.id||Ee(e.v.type)>Ee(t.v.type))&&(r=e,e=t,t=r),r=Ce(e.r,t),e.r=e.l,e.l=r,e},ke=[];let Oe=0;for(;Oe<6;)W(ke,{first:null,last:null,size:0}),Oe+=1;const Le=()=>{for(let e=0;e<6;e++){let t=ke[e];if(t.size>0){if(3===e||4===e){t.size-=1;let e=Se.v;return Se=Ce(Se.l,Se.r),e}1===t.size&&(t.last=null);let r=t.first;return t.first=r.r,t.size-=1,r.v}}},xe=(e,t,r,i,n,o,s)=>Ae(0,{a:null,b:null,node:r,parent:i,value:n,page:t,scope:o,meta:s},e),Ae=(e,t,r,i=0)=>{let n=Ee(r),o=ke[n],s={v:{idx:e,stack:t,type:r,id:i},l:null,r:null};3===n||4===n?Se=Ce(Se,s):(0===o.size?o.first=s:o.last.r=s,o.last=s),o.size+=1},Ee=e=>{switch(e){case"child":return 0;case"pure":return 1;case"read":return 2;case"barrier":return 3;case"sampler":return 4;case"effect":return 5;default:return-1}},Me=new Set;let Te,Re=1,Ie=0,Pe=0,Fe=null,je=e=>{Te=e},De=e=>{Fe=e};const Be=(e,t)=>{if(e){for(;e&&!e.reg[t];)e=T(e);if(e)return e}return null};let Ne,Ue=(e,t,r,i,n)=>{let o=Be(e,i.id);return o?o.reg[i.id]:t?($e(t,i,n),t.reg[i.id]):i};const We=e=>e;let $e=(e,t,r,i,o)=>{var s;let a=e.reg;if(a[t.id])return;let l=t.sid,d=null==t||null===(s=t.meta)||void 0===s?void 0:s.serialize,c=e.fromSerialize&&"ignore"!==d&&(null==d?void 0:d.read)||We,u={id:t.id,current:t.current,meta:t.meta};if(u.id in e.values.idMap)u.current=e.values.idMap[u.id];else if(l&&l in e.values.sidMap&&!(l in e.sidIdMap))u.current=c(e.values.sidMap[l]);else if(t.before&&!o){let o=0,s=r||!t.noInit||i;n(t.before,(t=>{switch(t.type){case C:{let n=t.from;if(n||t.fn){n&&$e(e,n,r,i);let o=n&&a[n.id].current;s&&(u.current=t.fn?t.fn(o):o)}break}case"field":o||(o=1,u.current=Array.isArray(u.current)?[...u.current]:{...u.current}),$e(e,t.from,r,i),s&&(u.current[t.field]=a[a[t.from.id].id].current)}}))}l&&(e.sidIdMap[l]=t.id),a[t.id]=u};const Ge=(e,t,r)=>{try{return t(E(r),e.scope,r)}catch(t){console.error(t),e.fail=1,e.failReason=t}};let qe=(e,t={})=>(te(e)&&(qe(e.or,t),i(e,((e,r)=>{ie(e)||"or"===r||"and"===r||(t[r]=e)})),qe(e.and,t)),t);const ze=(e,t)=>{U(e.next,t),U(L(e),t),U(x(e),t)},He=(e,t,r)=>{let i;e.next.length=0,e.seq.length=0,e.scope=null;let n=x(e);for(;i=n.pop();)ze(i,e),(t||r&&"sample"!==I(e,"op")||"crosslink"===i.family.type)&&He(i,t,"on"!==I(i,"op")&&r);for(n=L(e);i=n.pop();)ze(i,e),r&&"crosslink"===i.family.type&&He(i,t,"on"!==I(i,"op")&&r)},Ve=e=>e.clear();let Ye=(e,{deep:t}={})=>{let r=0;if(e.ownerSet&&e.ownerSet.delete(e),B(e))Ve(M(e));else if(N(e)){r=1;let t=e.history;Ve(t.events),Ve(t.effects),Ve(t.stores),Ve(t.domains)}He(O(e),!!t,r)},Ke=e=>{let t=()=>Ye(e);return t.unsubscribe=t,t},Qe=(e,t,r,i,n)=>s({node:r,parent:e,child:t,scope:{fn:n},meta:{op:i},family:{owners:[e,t],links:t},regional:1}),Xe=e=>{let t="forward",[{from:r,to:i},n]=c(e,1);return se(r,t,'"from"'),se(i,t,'"to"'),ae(t,i,"to"),Ke(s({parent:r,child:i,meta:{op:t,config:n},family:{},regional:1}))},Je=(e,t)=>(o(re(t),".watch argument should be a function"),Ke(s({scope:{fn:t},node:[ge({fn:ce})],parent:e,meta:{op:"watch"},family:{owners:e},regional:1}))),Ze=(e,t,r="event")=>{T(e)&&T(e).hooks[r](t)},et=(e,t,r)=>{let i=qe(r),n="domain"===e,o=z(),{sid:s=null,named:a=null,domain:l=null,parent:c=l}=i,u=a||i.name||(n?"":o),p=d(u,c),f={op:t.kind=e,name:t.shortName=u,sid:t.sid=J(s),named:a,unitId:t.id=o,serialize:i.serialize,derived:i.derived,config:i};if(t.parent=c,t.compositeName=p,t.defaultConfig=i,t.thru=e=>($(0,"thru","js pipe"),e(t)),t.getType=()=>p.fullName,!n){t.subscribe=e=>(ne(e),t.watch(re(e)?e:t=>e.next&&e.next(t))),t[S]=()=>t;let e=X();e&&(f.nativeTemplate=e)}return f};const tt=(e,t,r,i)=>{let n;te(r)&&(n=r,r=r.fn);let o=p({name:`${e.shortName} → *`,derived:1,and:n});return Qe(e,o,i,t,r),o},rt=(e,t,r,i,n)=>{let o=A(t),s=fe({store:o,to:"a",priority:"read"});r===C&&(s.data.softRead=1);let a=[s,ye(i)];return u("storeOnMap",o,a,B(e)&&A(e)),Qe(e,t,a,r,n)},it=(e,t,r,n,s)=>{let a=e?e=>[...e]:e=>({...e}),d=e?[]:{},c=a(d),p=_e(c),f=_e(1);p.type=e?"list":"shape",p.noInit=1,u("combineBase",p,f);let g=h(c,{name:l(r),derived:1,and:n}),v=A(g);v.noInit=1,P(g,"isCombine",1);let m=me(p);m.order={priority:"barrier"};let y=fe({store:v,to:"b",priority:"read"});y.data.softRead=1;let _=[ve(((e,t,r)=>(r.scope&&!r.scope.reg[p.id]&&(r.c=1),e))),m,fe({store:f,to:"b"}),ve(((e,{key:r},i)=>{if(i.c||e!==i.a[r])return t&&i.b&&(i.a=a(i.a)),i.a[r]=e,1}),1),fe({from:"a",target:p}),fe({from:"value",store:0,target:f}),fe({from:"value",store:1,target:f,priority:"barrier",batch:1}),me(p,1),s&&ye(),y];return i(r,((e,t)=>{if(!B(e))return o(!j(e)&&!ie(e),`combine expects a store in a field ${t}`),void(c[t]=d[t]=e);d[t]=e.defaultState,c[t]=e.getState();let r=Qe(e,g,_,"combine",s);r.scope.key=t;let i=A(e);we(p,{type:"field",field:t,from:i}),u("combineField",i,r)})),g.defaultShape=r,we(v,{type:C,from:p,fn:s}),X()||(g.defaultState=s?v.current=s(c):d),g};let nt=(e,t,r)=>{try{return[1,e(...r)]}catch(e){return t(e),[0,null]}},ot=e=>{let t=R(e),r={ref:t};return t&&W(t.activeEffects,r),r},st=(e,t,r,i,n,o)=>s=>{o.ref&&U(o.ref.activeEffects,o),a({target:[i,at],params:[r?{status:"done",params:e,result:s}:{status:"fail",params:e,error:s},{value:s,fn:r?t.rs:t.rj}],defer:1,page:n.page,scope:o.ref,meta:n.meta})};const at=s({node:[ge({fn:({fn:e,value:t})=>e(t)})],meta:{op:"fx",fx:"sidechain"}}),lt=["source","clock","target"],dt=(e,t)=>e+`: ${t} should be defined`;let ct=(e,t,r,i,n,s,a,l,d,c,f,v)=>{let m=!!n;o(!ie(r)||!ie(t),dt(e,"either source or clock"));let y=0;ie(r)?y=1:j(r)||(r=g(r)),ie(t)?t=r:(se(t,e,"clock"),Array.isArray(t)&&(t=_(t))),y&&(r=t),l||a||(a=r.shortName);let b="none";(f||i)&&(j(i)?b="unit":(o(re(i),"`filter` should be function or unit"),b="fn")),n?(se(n,e,"target"),ae(e,n)):"none"===b&&c&&B(r)&&B(t)?n=h(s?s(be(A(r)),be(A(t))):be(A(r)),{name:a,sid:v,or:l}):(n=p({name:a,derived:1,or:l}),u("sampleTarget",O(n)));let w=_e(),S=[];if("unit"===b){let[r,o]=pt(i,n,t,w,e);S=[...ut(o),...ut(r)]}let[C,L]=pt(r,n,t,w,e),x=Qe(t,n,[u("sampleSourceLoader"),fe({from:k,target:w}),...ut(L),me(C,1,d),...S,me(w),"fn"===b&&ye(((e,t,{a:r})=>i(e,r)),1),s&&ye(le),u("sampleSourceUpward",m)],e,s);return Z(r,[x]),Object.assign(x.meta,l,{joint:1}),n};const ut=e=>[me(e),ve(((e,t,{a:r})=>r),1)],pt=(e,t,r,i,n)=>{let o=B(e),a=o?A(e):_e(),l=_e(o);return o||s({parent:e,node:[fe({from:k,target:a}),fe({from:"value",store:1,target:l})],family:{owners:[e,t,r],links:t},meta:{op:n},regional:1}),u("sampleSource",l,a,i),[a,l]}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.nc=void 0;var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AppearanceManager:()=>L,StoryList:()=>vo,StoryListViewModel:()=>Qo,StoryManager:()=>cs,UGCStoryList:()=>mo});var e,t=__webpack_require__(46);!function(e){e.LEFT="left",e.RIGHT="right"}(e||(e={}));const r={hasFavorite:!1,hasLike:!1,hasShare:!1,closeButtonPosition:e.RIGHT,loader:{default:{color:"white",accentColor:"transparent"},custom:null},closeButton:{svgSrc:{baseState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M30 15.2115C30 23.4958 23.2843 30.2115 15 30.2115C6.71573 30.2115 0 23.4958 0 15.2115C0 6.92728 6.71573 0.211548 15 0.211548C23.2843 0.211548 30 6.92728 30 15.2115Z" fill="white"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.8309 10.0424C10.0969 9.77646 10.5281 9.77646 10.7941 10.0424L15 14.2483L19.2059 10.0424C19.4719 9.77646 19.9031 9.77646 20.1691 10.0424C20.4351 10.3084 20.4351 10.7397 20.1691 11.0057L15.9632 15.2115L20.1691 19.4174C20.4351 19.6834 20.4351 20.1147 20.1691 20.3807C19.9031 20.6466 19.4719 20.6466 19.2059 20.3807L15 16.1748L10.7941 20.3807C10.5281 20.6466 10.0969 20.6466 9.8309 20.3807C9.56492 20.1147 9.56492 19.6834 9.8309 19.4174L14.0368 15.2115L9.8309 11.0057C9.56492 10.7397 9.56492 10.3084 9.8309 10.0424Z" fill="#C2C2C4"/>\n</svg>'}},forceDesktopMode:void 0};var i,n,o,s,a,l;!function(e){e.CENTER="center",e.LEFT="left",e.RIGHT="right"}(i||(i={})),function(e){e.CIRCLE="circle",e.QUAD="quad",e.RECTANGLE="rectangle"}(n||(n={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(o||(o={})),function(e){e.CARD_INSIDE_BOTTOM="cardInsideBottom",e.CARD_OUTSIDE_TOP="cardOutsideTop",e.CARD_OUTSIDE_BOTTOM="cardOutsideBottom"}(s||(s={})),function(e){e.Medium="medium",e.High="high"}(a||(a={})),function(e){e.START_LOADER="startLoad",e.END_LOADER="endLoad"}(l||(l={}));const d={direction:"horizontal",card:{title:{font:'14px/1.2 system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',color:"#ffffff",padding:15,textAlign:o.LEFT,position:s.CARD_INSIDE_BOTTOM,display:!0,lineClamp:3},gap:10,height:70,aspectRatio:null,coverQuality:a.High,variant:n.CIRCLE,border:{radius:0,color:"black",width:2,gap:3,gradient:null},boxShadow:null,dropShadow:null,opacity:null,mask:{color:null,linearGradient:null},svgMask:null,opened:{border:{radius:null,color:null,width:null,gap:null,gradient:null},boxShadow:null,dropShadow:null,opacity:null,mask:{color:null,linearGradient:null},svgMask:null},coverLazyLoading:!1},favoriteCard:{title:{content:"Избранное",font:"normal",color:"#000",padding:15,textAlign:o.LEFT,position:s.CARD_INSIDE_BOTTOM,display:!0,lineClamp:3},gap:10,height:70,aspectRatio:null,coverQuality:a.High,coverLazyLoading:!1,variant:n.CIRCLE,border:{radius:0,color:"black",width:2,gap:3,gradient:null},boxShadow:null,dropShadow:null,opacity:null,mask:{color:null,linearGradient:null},svgMask:null,opened:{border:{radius:null,color:null,width:null,gap:null,gradient:null},boxShadow:null,dropShadow:null,opacity:null,mask:{color:null,linearGradient:null},svgMask:null}},sidePadding:20,topPadding:20,bottomPadding:20,bottomMargin:17,layout:{height:0,storiesListInnerHeight:null,backgroundColor:"transparent",sliderAlign:i.LEFT},navigation:{showControls:!1,controlsSize:48,controlsBackgroundColor:"white",controlsColor:"black"},ugcCard:{title:{content:null,font:'14px/1.2 system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',color:"#000",padding:15,textAlign:o.LEFT,position:s.CARD_INSIDE_BOTTOM,display:!0,lineClamp:3},gap:10,height:70,aspectRatio:null,coverQuality:a.High,coverLazyLoading:!1,variant:n.CIRCLE,border:{radius:0,color:"transparent",width:0,gap:0,gradient:null},boxShadow:null,dropShadow:null,opacity:null,mask:{color:null,linearGradient:null},svgMask:null,image:{svgSrc:{baseState:'<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M50 85.5C69.6061 85.5 85.5 69.6061 85.5 50C85.5 30.3939 69.6061 14.5 50 14.5C30.3939 14.5 14.5 30.3939 14.5 50C14.5 69.6061 30.3939 85.5 50 85.5Z" stroke="white" stroke-width="2"/>\n<path d="M50.5 34.5V65.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M34.5 49.5H65.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'}},backgroundColor:"#0c62f3"}};var c,u;!function(e){e.FLAT="flat",e.COVER="cover",e.CUBE="cube"}(c||(c={})),function(e){e.vk="vk",e.ok="ok",e.facebook="facebook",e.twitter="twitter",e.linkedin="linkedin",e.telegram="telegram"}(u||(u={}));const p={gameReaderOptions:{loader:{default:{color:"white",accentColor:"transparent"},custom:null}},scrollStyle:c.FLAT,timelineBlockTopOffset:8,actionPanelBottomOffset:0,borderRadius:12,loader:{default:{color:"white",accentColor:"transparent"},custom:null},recycleStoriesList:!1,closeOnLastSlideByTimer:!0,sharePanel:{targets:[...Object.values(u)],copyButton:{svgSrc:{baseState:'<svg width="31.5px" height="35px" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 20"><path d="M6.6 0a2 2 0 0 0-2 2v12c0 1.2.9 2 2 2h9a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2h-9Zm0 2h9v12h-9V2Z" fill="currentColor"/><path d="M2.6 20a2 2 0 0 1-2-2V5h2v13h10v2h-10Z" fill="currentColor"/></svg>'}},downloadButton:{svgSrc:{baseState:'<svg width="30" height="30" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor"><path d="M31 22a1 1 0 0 0-1 1v7H2v-7a1 1 0 0 0-2 0v8c0 .6.4 1 1 1h30c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"/><path d="M15.3 23.7c.4.4 1 .4 1.4 0l7-6.9c.4-.4.4-1 0-1.4a1 1 0 0 0-1.4 0L17 20.6V1a1 1 0 0 0-2 0v19.6l-5.3-5.2a1 1 0 0 0-1.4 0 1 1 0 0 0 0 1.4l7 7z"/></g></svg>'}}},commonBackdrop:{color:"rgba(51, 51, 51, 1)",backdropFilter:null},slideBackdrop:{opacity:.56,blur:30,linearGradientOverlay:["rgba(0, 0, 0, 0.1) 0%","rgba(0, 0, 0, 0.9) 100%"]},faviconApiUrl:"",likeButton:{svgSrc:{baseState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.96277 15.177L8.11552 15.1837C8.75334 15.1873 9.26846 15.7054 9.26846 16.3433V22.7329C9.26846 23.376 8.74519 23.8962 8.10215 23.8925L6.94939 23.8859C6.31157 23.8822 5.79645 23.3641 5.79645 22.7263V16.3366C5.79645 15.6936 6.31972 15.1733 6.96277 15.177Z" stroke="white" stroke-width="1.21546"/>\n<path d="M11.2546 15.0917L11.3801 23.0645C11.3867 23.4802 11.6013 23.8648 11.9516 24.0886C12.119 24.1955 12.4834 24.2735 12.4834 24.2735L13.1084 24.3569L13.9973 24.4541L15.9789 24.5912L17.4834 24.6365H18.9642L19.282 24.6229C19.7715 24.6018 20.258 24.5358 20.7354 24.4256L21.1038 24.3406C21.3122 24.2925 21.516 24.2263 21.7128 24.1428L21.7439 24.1295C22.0493 23.9999 22.3342 23.8269 22.59 23.6157L22.717 23.5108C22.873 23.382 23.0108 23.2326 23.1265 23.0666L23.1451 23.04C23.2426 22.9003 23.3217 22.7485 23.3804 22.5886L23.428 22.4586C23.5278 22.1867 23.5473 21.8918 23.4842 21.6092L23.4296 21.3645C23.4285 21.3594 23.4265 21.3544 23.4237 21.3499C23.4102 21.3285 23.4163 21.3002 23.4374 21.2862L23.7911 21.0504V21.0504C23.8452 21.0143 23.8957 20.9723 23.9416 20.9263V20.9263C23.99 20.8728 24.0444 20.8083 24.0805 20.7458L24.1361 20.6625C24.2924 20.3945 24.3931 20.0167 24.4083 19.7069L24.4118 19.6352C24.4205 19.458 24.4079 19.2804 24.3744 19.1062L24.3305 18.8986C24.325 18.8696 24.2749 18.7163 24.2611 18.6902L24.1718 18.5154C24.1644 18.5014 24.1898 18.473 24.1898 18.473L24.3653 18.2658C24.4983 18.1109 24.6033 17.9305 24.673 17.7386C24.7222 17.6035 24.7532 17.4657 24.775 17.3153L24.7889 17.1764L24.7957 17.0468C24.8164 16.8366 24.7978 16.6244 24.7409 16.421C24.6929 16.2496 24.6183 16.0868 24.5198 15.9385L24.1983 15.4542C24.1843 15.4367 24.1808 15.413 24.1891 15.3922L24.3081 15.1055C24.3652 14.9628 24.4224 14.6641 24.4391 14.4717L24.4307 14.2984C24.4026 14.0113 24.2405 13.6815 24.0757 13.4238L23.9912 13.3055C23.7236 12.9608 23.3474 12.7334 22.9388 12.5804L22.706 12.4932C22.3923 12.3758 22.0667 12.3327 21.7279 12.2916L21.3444 12.2597C20.89 12.2378 20.2444 12.2651 19.7945 12.3327L18.1092 12.5861C18.1014 12.5873 18.0935 12.5879 18.0857 12.5879H18.0692C17.991 12.5879 17.9276 12.5245 17.9276 12.4462C17.9276 12.4387 17.9282 12.4312 17.9293 12.4238L18.1222 11.3847L18.5408 9.72426C18.6303 9.39087 18.6888 9.04995 18.7158 8.70582L18.7581 8.1657C18.7857 7.81269 18.746 7.45764 18.6411 7.11944L18.6144 7.03332C18.52 6.72899 18.3649 6.44697 18.1583 6.20434L18.1116 6.14941C17.819 5.80563 17.4249 5.56351 16.9859 5.45788L16.7169 5.39313C16.4437 5.32739 16.1567 5.3518 15.8986 5.46269C15.6593 5.56548 15.4564 5.73766 15.316 5.95699L15.2994 5.98302C15.155 6.20866 15.0783 6.47094 15.0783 6.73882V7.10777C15.0783 7.45352 15.0109 7.79596 14.88 8.11598L14.1668 9.85969C13.9176 10.4691 13.6196 11.0573 13.2758 11.6188L12.5778 12.7586C12.4514 12.9651 12.3013 13.1561 12.1306 13.3278L12.0855 13.3731C11.6243 13.837 11.3317 14.442 11.2546 15.0917Z" stroke="white" stroke-width="1.21546"/>\n</svg>',activeState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.96277 15.1771L8.11552 15.1838C8.75334 15.1875 9.26846 15.7056 9.26846 16.3434V22.733C9.26846 23.3761 8.74519 23.8964 8.10215 23.8926L6.94939 23.886C6.31157 23.8823 5.79645 23.3642 5.79645 22.7264V16.3368C5.79645 15.6937 6.31972 15.1734 6.96277 15.1771Z" fill="white" stroke="white" stroke-width="1.21546"/>\n<path d="M11.2546 15.0918L11.3801 23.0646C11.3867 23.4803 11.6013 23.8649 11.9516 24.0888C12.119 24.1957 12.4834 24.2737 12.4834 24.2737L13.1084 24.357L13.9973 24.4542L15.9789 24.5913L17.4834 24.6367H18.9642L19.282 24.623C19.7715 24.6019 20.258 24.5359 20.7354 24.4257L21.1038 24.3407C21.3122 24.2926 21.516 24.2264 21.7128 24.1429L21.7439 24.1297C22.0493 24.0001 22.3342 23.827 22.59 23.6158L22.717 23.5109C22.873 23.3821 23.0108 23.2327 23.1265 23.0668L23.1451 23.0401C23.2426 22.9004 23.3217 22.7487 23.3804 22.5887L23.428 22.4588C23.5278 22.1868 23.5473 21.892 23.4842 21.6093L23.4296 21.3647C23.4285 21.3595 23.4265 21.3545 23.4237 21.3501C23.4102 21.3286 23.4163 21.3004 23.4374 21.2863L23.7911 21.0505V21.0505C23.8452 21.0144 23.8957 20.9724 23.9416 20.9265V20.9265C23.99 20.8729 24.0444 20.8084 24.0805 20.7459L24.1361 20.6626C24.2924 20.3946 24.3931 20.0168 24.4083 19.707L24.4118 19.6353C24.4205 19.4581 24.4079 19.2805 24.3744 19.1063L24.3305 18.8987C24.325 18.8697 24.2749 18.7165 24.2611 18.6904L24.1718 18.5155C24.1644 18.5015 24.1898 18.4732 24.1898 18.4732L24.3653 18.2659C24.4983 18.1111 24.6033 17.9306 24.673 17.7387C24.7222 17.6036 24.7532 17.4658 24.775 17.3154L24.7889 17.1765L24.7957 17.0469C24.8164 16.8367 24.7978 16.6245 24.7409 16.4211C24.6929 16.2497 24.6183 16.0869 24.5198 15.9386L24.1983 15.4543C24.1843 15.4368 24.1808 15.4131 24.1891 15.3923L24.3081 15.1056C24.3652 14.9629 24.4224 14.6642 24.4391 14.4718L24.4307 14.2985C24.4026 14.0114 24.2405 13.6817 24.0757 13.4239L23.9912 13.3056C23.7236 12.9609 23.3474 12.7336 22.9388 12.5805L22.706 12.4934C22.3923 12.3759 22.0667 12.3329 21.7279 12.2918L21.3444 12.2598C20.89 12.2379 20.2444 12.2652 19.7945 12.3329L18.1092 12.5863C18.1014 12.5874 18.0935 12.588 18.0857 12.588H18.0692C17.991 12.588 17.9276 12.5246 17.9276 12.4464C17.9276 12.4389 17.9282 12.4313 17.9293 12.4239L18.1222 11.3849L18.5408 9.72438C18.6303 9.391 18.6888 9.05007 18.7158 8.70594L18.7581 8.16582C18.7857 7.81281 18.746 7.45776 18.6411 7.11956L18.6144 7.03344C18.52 6.72911 18.3649 6.4471 18.1583 6.20446L18.1116 6.14953C17.819 5.80575 17.4249 5.56363 16.9859 5.458L16.7169 5.39325C16.4437 5.32751 16.1567 5.35192 15.8986 5.46281C15.6593 5.5656 15.4564 5.73778 15.316 5.95711L15.2994 5.98314C15.155 6.20878 15.0783 6.47106 15.0783 6.73895V7.10789C15.0783 7.45364 15.0109 7.79608 14.88 8.1161L14.1668 9.85982C13.9176 10.4692 13.6196 11.0574 13.2758 11.6189L12.5778 12.7588C12.4514 12.9652 12.3013 13.1562 12.1306 13.3279L12.0855 13.3732C11.6243 13.8371 11.3317 14.4421 11.2546 15.0918Z" fill="white" stroke="white" stroke-width="1.21546"/>\n</svg>'}},dislikeButton:{svgSrc:{baseState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M24.2033 13.6632C24.2033 14.3062 23.68 14.8265 23.037 14.8228L21.8842 14.8161C21.2464 14.8125 20.7313 14.2944 20.7313 13.6565V7.2669C20.7313 6.62385 21.2546 6.10359 21.8976 6.1073L23.0504 6.11395C23.6882 6.11762 24.2033 6.63572 24.2033 7.27355V13.6632Z" stroke="white" stroke-width="1.21547"/>\n<path d="M18.7451 14.9082L18.6196 6.93531C18.6131 6.51965 18.3984 6.13499 18.0481 5.91118C17.8808 5.80428 17.5164 5.72628 17.5164 5.72628L16.8914 5.64295L16.0025 5.54572L14.0208 5.4086L12.5164 5.36328H11.0356L10.7178 5.37695C10.2283 5.398 9.74173 5.46403 9.26432 5.57421L8.89596 5.65921C8.68758 5.7073 8.4838 5.7735 8.28695 5.85706L8.25581 5.87027C7.95049 5.99987 7.66551 6.17296 7.40975 6.38416L7.28278 6.48901C7.12677 6.61783 6.989 6.76725 6.87323 6.93318L6.85466 6.95981C6.75716 7.09955 6.67809 7.25128 6.6194 7.41124L6.57172 7.54119C6.47196 7.81311 6.45245 8.10797 6.51553 8.39066L6.57011 8.63528C6.57127 8.64045 6.57329 8.64539 6.5761 8.64989C6.58951 8.67134 6.58343 8.69958 6.56238 8.71361L6.20864 8.94944V8.94944C6.15453 8.98551 6.10408 9.0275 6.05811 9.07348V9.07348C6.00973 9.12703 5.95532 9.19155 5.91922 9.25403L5.86366 9.33737C5.70735 9.60533 5.60662 9.98309 5.59145 10.2929L5.58794 10.3646C5.57927 10.5418 5.59182 10.7194 5.62532 10.8937L5.66922 11.1012C5.6748 11.1302 5.72484 11.2835 5.73866 11.3096L5.82792 11.4845C5.83532 11.4984 5.80994 11.5268 5.80994 11.5268L5.63444 11.734C5.50143 11.8889 5.3965 12.0693 5.32674 12.2612C5.27758 12.3964 5.24658 12.5341 5.22478 12.6846L5.21089 12.8235L5.20405 12.953C5.18333 13.1632 5.20192 13.3755 5.25887 13.5788C5.30686 13.7503 5.38145 13.9131 5.47991 14.0614L5.80147 14.5456C5.81547 14.5631 5.81898 14.5868 5.81066 14.6076L5.69163 14.8944C5.63456 15.037 5.57739 15.3357 5.56065 15.5282L5.5691 15.7014C5.5972 15.9885 5.75924 16.3183 5.92402 16.576L6.00853 16.6943C6.2762 17.039 6.65231 17.2664 7.06099 17.4194L7.2938 17.5066C7.60742 17.624 7.93309 17.6671 8.27189 17.7082L8.65531 17.7401C9.10973 17.762 9.75538 17.7347 10.2053 17.6671L11.8906 17.4137C11.8984 17.4125 11.9062 17.4119 11.9141 17.4119H11.9305C12.0088 17.4119 12.0722 17.4753 12.0722 17.5536C12.0722 17.5611 12.0716 17.5686 12.0704 17.576L11.8775 18.6151L11.459 20.2756C11.3695 20.6089 11.3109 20.9499 11.284 21.294L11.2417 21.8341C11.214 22.1871 11.2537 22.5422 11.3586 22.8804L11.3853 22.9665C11.4797 23.2708 11.6349 23.5528 11.8414 23.7955L11.8882 23.8504C12.1808 24.1942 12.5749 24.4363 13.0138 24.5419L13.2829 24.6067C13.556 24.6724 13.8431 24.648 14.1012 24.5371C14.3404 24.4343 14.5434 24.2622 14.6837 24.0428L14.7004 24.0168C14.8448 23.7912 14.9215 23.5289 14.9215 23.261V22.892C14.9215 22.5463 14.9888 22.2039 15.1197 21.8838L15.8329 20.1401C16.0821 19.5308 16.3801 18.9425 16.7239 18.381L17.4219 17.2412C17.5483 17.0347 17.6984 16.8437 17.8691 16.6721L17.9142 16.6267C18.3755 16.1629 18.668 15.5578 18.7451 14.9082Z" stroke="white" stroke-width="1.21547"/>\n</svg>',activeState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M24.2035 13.6629C24.2035 14.3059 23.6803 14.8262 23.0372 14.8225L21.8845 14.8158C21.2466 14.8122 20.7315 14.2941 20.7315 13.6562V7.26655C20.7315 6.62348 21.2548 6.10322 21.8978 6.10693L23.0506 6.11358C23.6884 6.11725 24.2035 6.63535 24.2035 7.27319V13.6629Z" fill="white" stroke="white" stroke-width="1.21547"/>\n<path d="M18.7454 14.9079L18.6199 6.93496C18.6133 6.51929 18.3987 6.13463 18.0484 5.91082C17.881 5.80392 17.5166 5.72592 17.5166 5.72592L16.8916 5.64258L16.0027 5.54536L14.021 5.40824L12.5166 5.36292H11.0358L10.718 5.37659C10.2285 5.39764 9.74192 5.46367 9.26451 5.57384L8.89614 5.65885C8.68776 5.70694 8.48398 5.77314 8.28713 5.8567L8.25599 5.86991C7.95066 5.99951 7.66569 6.1726 7.40992 6.3838L7.28295 6.48865C7.12694 6.61747 6.98917 6.7669 6.8734 6.93283L6.85483 6.95946C6.75733 7.0992 6.67826 7.25093 6.61957 7.41088L6.57189 7.54084C6.47212 7.81276 6.45262 8.10762 6.5157 8.39032L6.57028 8.63494C6.57143 8.64011 6.57346 8.64505 6.57627 8.64954C6.58968 8.671 6.5836 8.69923 6.56255 8.71327L6.2088 8.9491C6.1547 8.98517 6.10425 9.02716 6.05827 9.07314C6.0099 9.12669 5.95549 9.19121 5.91938 9.25369L5.86383 9.33703C5.70751 9.60499 5.60678 9.98276 5.59161 10.2926L5.58811 10.3643C5.57943 10.5415 5.59198 10.7191 5.62549 10.8933L5.66938 11.1009C5.67496 11.1299 5.72501 11.2831 5.73883 11.3092L5.82808 11.4841C5.83549 11.4981 5.8101 11.5264 5.8101 11.5264L5.63461 11.7337C5.50159 11.8886 5.39666 12.069 5.3269 12.2609C5.27775 12.396 5.24674 12.5338 5.22494 12.6842L5.21105 12.8231L5.20421 12.9527C5.18349 13.1629 5.20208 13.3751 5.25903 13.5785C5.30702 13.7499 5.38161 13.9128 5.48007 14.061L5.80163 14.5453C5.81564 14.5628 5.81915 14.5865 5.81082 14.6073L5.69179 14.894C5.63472 15.0367 5.57755 15.3354 5.56081 15.5279L5.56926 15.7011C5.59737 15.9882 5.7594 16.318 5.92419 16.5757L6.0087 16.694C6.27636 17.0387 6.65248 17.2661 7.06116 17.4191L7.29397 17.5063C7.6076 17.6237 7.93327 17.6668 8.27207 17.7079L8.65549 17.7398C9.10991 17.7617 9.75557 17.7344 10.2055 17.6668L11.8908 17.4134C11.8986 17.4122 11.9064 17.4116 11.9143 17.4116H11.9307C12.009 17.4116 12.0724 17.4751 12.0724 17.5533C12.0724 17.5608 12.0718 17.5683 12.0706 17.5757L11.8777 18.6148L11.4592 20.2753C11.3697 20.6087 11.3111 20.9496 11.2842 21.2937L11.2419 21.8339C11.2142 22.1869 11.2539 22.5419 11.3588 22.8801L11.3855 22.9662C11.4799 23.2706 11.6351 23.5526 11.8416 23.7952L11.8884 23.8502C12.181 24.1939 12.5751 24.4361 13.014 24.5417L13.2831 24.6064C13.5562 24.6722 13.8433 24.6478 14.1014 24.5369C14.3407 24.4341 14.5436 24.2619 14.6839 24.0426L14.7006 24.0166C14.845 23.7909 14.9217 23.5286 14.9217 23.2607V22.8918C14.9217 22.546 14.989 22.2036 15.1199 21.8836L15.8331 20.1399C16.0824 19.5305 16.3803 18.9422 16.7241 18.3808L17.4221 17.2409C17.5486 17.0344 17.6987 16.8434 17.8694 16.6718L17.9144 16.6264C18.3757 16.1626 18.6683 15.5575 18.7454 14.9079Z" fill="white" stroke="white" stroke-width="1.21547"/>\n</svg>'}},favoriteButton:{svgSrc:{baseState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.49976 7.25225V23.2366C7.49976 24.6882 9.33429 25.321 10.2292 24.1782L13.7974 19.6218C14.4088 18.8411 15.5907 18.8411 16.2021 19.6218L19.7703 24.1782C20.6652 25.321 22.4998 24.6882 22.4998 23.2366V7.25225C22.4998 5.98711 21.4742 4.96152 20.209 4.96152H9.79048C8.52535 4.96152 7.49976 5.98712 7.49976 7.25225Z" stroke="white" stroke-width="1.29808"/>\n</svg>',activeState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.49976 7.04073V23.0251C7.49976 24.4767 9.33429 25.1095 10.2292 23.9667L13.7974 19.4103C14.4088 18.6296 15.5907 18.6296 16.2021 19.4103L19.7703 23.9667C20.6652 25.1095 22.4998 24.4766 22.4998 23.0251V7.04072C22.4998 5.77559 21.4742 4.75 20.209 4.75H9.79048C8.52535 4.75 7.49976 5.77559 7.49976 7.04073Z" fill="white" stroke="white" stroke-width="1.29808"/>\n</svg>'}},muteButton:{svgSrc:{baseState:'<svg width="30" height="31" viewBox="0 0 30 31" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M3.40625 13.5734V18.7664C3.40625 19.7239 4.18245 20.5001 5.13993 20.5001H8.04633C8.6342 20.5001 9.17511 20.8213 9.45654 21.3374L11.903 25.8242C12.271 26.4992 12.9783 26.9192 13.7471 26.9192C14.9072 26.9192 15.8477 25.9788 15.8477 24.8187V7.52486C15.8477 6.36469 14.9072 5.42416 13.747 5.42412C12.9783 5.42409 12.2709 5.84393 11.9028 6.51875L9.45651 11.0026C9.17509 11.5184 8.63442 11.8394 8.04683 11.8394H5.14027C4.1826 11.8394 3.40625 12.6157 3.40625 13.5734Z" fill="white"/>\n<path d="M19.8477 13.0466L26.0976 19.2966M26.0976 13.0466L19.8477 19.2966" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>',activeState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M3.40625 12.5733V17.7663C3.40625 18.7238 4.18245 19.5 5.13993 19.5H8.04633C8.6342 19.5 9.17511 19.8212 9.45654 20.3373L11.903 24.8241C12.271 25.4991 12.9783 25.919 13.7471 25.9191C14.9072 25.9191 15.8477 24.9787 15.8477 23.8186V6.52474C15.8477 5.36457 14.9072 4.42404 13.747 4.424C12.9783 4.42397 12.2709 4.84381 11.9028 5.51863L9.45651 10.0025C9.17509 10.5183 8.63442 10.8392 8.04683 10.8392H5.14027C4.1826 10.8392 3.40625 11.6156 3.40625 12.5733Z" fill="white"/>\n<path d="M19.8477 11.4215C20.6323 12.4661 21.0972 13.7645 21.0972 15.1715C21.0972 16.5785 20.6323 17.8769 19.8477 18.9215M22.3472 6.78613C24.6487 8.84608 26.0972 11.8396 26.0972 15.1715C26.0972 18.5034 24.6487 21.4969 22.3472 23.5569" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>'}},shareButton:{svgSrc:{baseState:'<svg width="30" height="31" viewBox="0 0 30 31" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M19.5 10.9038C20.8488 10.9038 21.9423 9.81036 21.9423 8.46151C21.9423 7.11266 20.8488 6.01921 19.5 6.01921C18.1512 6.01921 17.0577 7.11266 17.0577 8.46151C17.0577 9.81036 18.1512 10.9038 19.5 10.9038ZM19.5 12.2115C21.5711 12.2115 23.25 10.5326 23.25 8.46151C23.25 6.39045 21.5711 4.71151 19.5 4.71151C17.4289 4.71151 15.75 6.39045 15.75 8.46151C15.75 8.98692 15.8581 9.48709 16.0531 9.94101L12.288 12.4511C11.6202 11.8367 10.7288 11.4615 9.74976 11.4615C7.67869 11.4615 5.99976 13.1404 5.99976 15.2115C5.99976 17.2826 7.67869 18.9615 9.74976 18.9615C10.7325 18.9615 11.6269 18.5835 12.2956 17.9649L16.018 20.5665C15.8451 20.9977 15.75 21.4685 15.75 21.9615C15.75 24.0326 17.4289 25.7115 19.5 25.7115C21.5711 25.7115 23.25 24.0326 23.25 21.9615C23.25 19.8904 21.5711 18.2115 19.5 18.2115C18.3369 18.2115 17.2974 18.7411 16.6096 19.5722L13.0138 17.0591C13.3231 16.5138 13.4998 15.8833 13.4998 15.2115C13.4998 14.5368 13.3216 13.9037 13.0097 13.3567L16.667 10.9185C17.3545 11.7106 18.3688 12.2115 19.5 12.2115ZM12.1921 15.2115C12.1921 16.5604 11.0986 17.6538 9.74976 17.6538C8.40091 17.6538 7.30745 16.5604 7.30745 15.2115C7.30745 13.8627 8.40091 12.7692 9.74976 12.7692C11.0986 12.7692 12.1921 13.8627 12.1921 15.2115ZM21.9423 21.9615C21.9423 23.3104 20.8488 24.4038 19.5 24.4038C18.1512 24.4038 17.0577 23.3104 17.0577 21.9615C17.0577 20.6127 18.1512 19.5192 19.5 19.5192C20.8488 19.5192 21.9423 20.6127 21.9423 21.9615Z" fill="white"/>\n</svg>'}}},f={title:{content:"Favorite",font:"1.4rem/1.2 InternalPrimaryFont",color:"white",backgroundColor:"#333333"},headerTopOffset:0,bottomOffset:0,backgroundColor:"#333333"};var h,g=__webpack_require__(2743),v=__webpack_require__.n(g);!function(e){e.DEFAULT="default",e.CUSTOM_CARD="customCard"}(h||(h={}));const m={goodsWidgetRenderingType:h.DEFAULT,goodsList:{renderingType:h.DEFAULT,closeBackgroundColor:"#000000",substrateHeight:200,substrateColor:"#FFFFFF",dimColor:"rgba(0, 0, 0, 0.5)"},goodsCard:{mainTextColor:"#000000",oldPriceTextColor:"#CCCCCC",imageBackgroundColor:"transparent",imageCornerRadius:8},openGoodsWidgetHandler:e=>Promise.resolve(e),loader:{default:{color:"gray",accentColor:"transparent"}}},y={loader:{default:{color:"white",accentColor:"transparent"},custom:null},backdropColor:"#1a1a1a",backdrop:{opacity:1,background:"#1a1a1a"},game:{backdropColor:"rgb(51, 51, 51)"},forceDesktopMode:r.forceDesktopMode,forceCheckOrientation:!0};var _,b,w,S,C,k,O;!function(e){e.EVENT_UPDATED_COMMON_OPTIONS="updatedCommonOptions",e.EVENT_UPDATED_STORIES_LIST_OPTIONS="updatedStoriesListOptions",e.EVENT_UPDATED_STORY_READER_OPTIONS="updatedStoryReaderOptions",e.EVENT_UPDATED_FAVORITE_READER_OPTIONS="updatedFavoriteReaderOptions",e.EVENT_UPDATED_GAME_READER_OPTIONS="updatedGameReaderOptions",e.EVENT_UPDATED_GOODS_WIDGET_OPTIONS="updatedGoodsWidgetOptions"}(_||(_={}));class L extends t.EventEmitter{constructor(){super(),this._commonOptions=r,this._storiesListOptions=d,this._storyReaderOptions=p,this._storyFavoriteReaderOptions=f,this._goodsWidgetOptions=m,this._gameReaderOptions=y,this._mqls=new Map,this._composeOptionsOverrideByMediaQuery=this._composeOptionsOverrideByMediaQuery.bind(this)}setCommonOptions(e,t=!0){return this._commonOptions=v()(this._commonOptions,e),this.emit(_.EVENT_UPDATED_COMMON_OPTIONS,this.commonOptions),this}get commonOptions(){return this._commonOptions}setStoriesListOptions(e,t=!0){return this._storiesListOptions=v()(this._storiesListOptions,e),t&&this.emit(_.EVENT_UPDATED_STORIES_LIST_OPTIONS,this.storiesListOptions),this}get storiesListOptions(){return this._storiesListOptions}setStoryReaderOptions(e,t=!0){return this._storyReaderOptions=v()(this._storyReaderOptions,e,{arrayMerge:(e,t,r)=>t}),t&&this.emit(_.EVENT_UPDATED_STORY_READER_OPTIONS,{storyReaderOptions:this.storyReaderOptions,gameReaderOptions:this.gameReaderOptions,appearanceCommon:this.commonOptions}),this}get storyReaderOptions(){const e={closeButtonPosition:this.commonOptions.closeButtonPosition,closeButton:this.commonOptions.closeButton,loader:this.commonOptions.loader};return Object.assign(Object.assign({},e),this._storyReaderOptions)}setStoryFavoriteReaderOptions(e,t=!0){return this._storyFavoriteReaderOptions=v()(this._storyFavoriteReaderOptions,e),t&&this.emit(_.EVENT_UPDATED_FAVORITE_READER_OPTIONS,this.storyFavoriteReaderOptions),this}get storyFavoriteReaderOptions(){const e={closeButtonPosition:this.commonOptions.closeButtonPosition,closeButton:this.commonOptions.closeButton};return Object.assign(Object.assign({},e),this._storyFavoriteReaderOptions)}setGoodsWidgetOptions(e,t=!0){return this._goodsWidgetOptions=v()(this._goodsWidgetOptions,e),t&&this.emit(_.EVENT_UPDATED_GOODS_WIDGET_OPTIONS,this.goodsWidgetOptions),this}get goodsWidgetOptions(){return this._goodsWidgetOptions}setGameReaderOptions(e,t=!0){return this._gameReaderOptions=v()(this._gameReaderOptions,e),t&&this.emit(_.EVENT_UPDATED_GAME_READER_OPTIONS,this.gameReaderOptions),this}get gameReaderOptions(){const e={closeButtonPosition:this.commonOptions.closeButtonPosition,closeButton:this.commonOptions.closeButton,loader:this.commonOptions.loader,forceDesktopMode:this.commonOptions.forceDesktopMode};return Object.assign(Object.assign({},e),this._gameReaderOptions)}setOptionsOverrideByMediaQuery(e){return this.removeMediaQueryEventListeners(),this.initMediaQueries(e),this}initMediaQueries(e){for(const t of e){const e=this._composeMqlCondition(t);if(null!==e&&null!=window.matchMedia){const r=window.matchMedia(e);this._mqls.set(r,t),r.addEventListener("change",this._composeOptionsOverrideByMediaQuery)}}this._composeOptionsOverrideByMediaQuery()}_composeMqlCondition(e){let t=null;if(null!=e.viewportMinSize){if("number"==typeof e.viewportMinSize)t=`(min-width: ${e.viewportMinSize}px)`;else if("string"==typeof e.viewportMinSize)switch(e.viewportMinSize){case"sm":t="(min-width: 576px)";break;case"md":t="(min-width: 768px)";break;case"lg":t="(min-width: 992px)";break;case"xl":t="(min-width: 1200px)";break;default:t=null}null!=e.mediaQuery&&"string"==typeof e.mediaQuery&&e.mediaQuery.length>0&&(t=e.mediaQuery)}return t}_composeOptionsOverrideByMediaQuery(e){const t=new Set;for(const[e,r]of this._mqls)e.matches&&(null!=r.commonOptions&&(this.setCommonOptions(r.commonOptions,!1),t.add("commonOptions")),null!=r.storiesListOptions&&(this.setStoriesListOptions(r.storiesListOptions,!0),t.add("storiesListOptions")),null!=r.storyReaderOptions&&(this.setStoryReaderOptions(r.storyReaderOptions,!1),t.add("storyReaderOptions")),null!=r.storyFavoriteReaderOptions&&(this.setStoryFavoriteReaderOptions(r.storyFavoriteReaderOptions,!1),t.add("storyFavoriteReaderOptions")),null!=r.goodsWidgetOptions&&(this.setGoodsWidgetOptions(r.goodsWidgetOptions,!1),t.add("goodsWidgetOptions")),null!=r.gameReaderOptions&&(this.setGameReaderOptions(r.gameReaderOptions,!1),t.add("gameReaderOptions")));t.forEach((e=>{switch(e){case"commonOptions":this.setCommonOptions({});break;case"storiesListOptions":this.setStoriesListOptions({});break;case"storyReaderOptions":this.setStoryReaderOptions({});break;case"storyFavoriteReaderOptions":this.setStoryFavoriteReaderOptions({});break;case"goodsWidgetOptions":this.setGoodsWidgetOptions({});break;case"gameReaderOptions":this.setGameReaderOptions({})}}))}removeMediaQueryEventListeners(){for(const e of this._mqls.keys())e.removeEventListener("change",this._composeOptionsOverrideByMediaQuery);this._mqls.clear()}destroy(){this.removeMediaQueryEventListeners()}}!function(e){e.direct="direct",e.onboarding="onboarding",e.list="list",e.favorite="favorite"}(b||(b={})),function(e){e[e.default=0]="default",e[e.favorite=1]="favorite"}(w||(w={})),function(e){e[e.default=0]="default",e[e.onboarding=1]="onboarding",e[e.favorite=2]="favorite",e[e.direct=3]="direct"}(S||(S={})),function(e){e.list="list",e.favorite="favorite"}(C||(C={})),function(e){e.CLICK_ON_STORY="clickOnStoryLink"}(k||(k={})),function(e){e.TEXT="text",e.IMAGE="image"}(O||(O={}));var x=__webpack_require__(3128),A=__webpack_require__(1810),E=__webpack_require__(3142),M=__webpack_require__.n(E),T=__webpack_require__(1580),R=__webpack_require__.n(T);const I=(0,A.y$)({default:{},user:{}}),{sdkPlaceholdersChanged:P,addDefaultPlaceholders:F}=(0,A.xP)(I,{sdkPlaceholdersChanged:(e,t)=>({default:e.default,user:t}),addDefaultPlaceholders:(e,t)=>{let r={default:{},user:e.user};return M()(t)&&t.forEach((e=>{R()(e)&&void 0!==e.name&&void 0!==e.default_value&&(r.default[e.name]=e.default_value)})),r}});var j=__webpack_require__(3655),D=__webpack_require__.n(j),B=__webpack_require__(8138),N=__webpack_require__.n(B),U=__webpack_require__(986),W=__webpack_require__.n(U),$=__webpack_require__(6265);class G{constructor(e){this.window=e}get width(){const e=this.window.document.documentElement.clientWidth;return Math.abs(this.window.innerWidth-e)}setScrollbar(e=this.width){this._disableOverFlow(),this._setElementAttributes("body","paddingRight",(t=>t+e))}_disableOverFlow(){const e=this.window.document.body.style.overflow;e&&(this.window.document.body.dataset.overflow=e),this.window.document.body.style.overflow="hidden"}_setElementAttributes(e,t,r){const i=this.width;this.window.document.querySelectorAll(e).forEach((e=>{if(e!==this.window.document.body&&this.window.innerWidth>e.clientWidth+i)return;const n=e.style[t],o=this.window.getComputedStyle(e)[t];e.dataset[t]=n,e.style[t]=`${r(Number.parseFloat(o))}px`}))}resetScrollbar(){this._resetElementAttributes("body","overflow"),this._resetElementAttributes("body","paddingRight")}_resetElementAttributes(e,t){this.window.document.querySelectorAll(e).forEach((e=>{const r=e.dataset[t];void 0===r?e.style.removeProperty(t):(delete e.dataset[t],e.style[t]=r)}))}}var q=__webpack_require__(9782),z=__webpack_require__(5946),H=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class V extends $.A{constructor(e,t){super(e,t),this.iframe=null,this._silentClose=!1}set silentClose(e){this._silentClose=e}init(e){return H(this,void 0,void 0,(function*(){var t={},r={};t.allowTransparency=!0,t.overflowTouch=!1,t.zIndex=2147483644,t.backgroundColor="transparent";var i={startHeight:70,minWidth:150,storiesHeight:70},n=(document.querySelector("body"),document.querySelector("html"),t.zIndex||2147483645);const o=new G(window),s=this,a={event:function(e,t){s.emit(e,t)},setFixedHtmlPosition:function(){},open:function(e){e.windowReferer===w.default?o.setScrollbar():(e.windowReferer,w.favorite),s.emit("openStoryReader",e),s.iframe&&(s.iframe.style.setProperty("display","block"),s.iframe.style.setProperty("z-index",n))},close:function(e){var t;e.windowReferer===w.default?o.resetScrollbar():(e.windowReferer,w.favorite),!1===s._silentClose&&s.emit("closeStoryReader",e),s.iframe&&s.iframe.style.setProperty("display","none"),null===(t=s.browserHistory)||void 0===t||t.destroy()}};return new Promise(((n,o)=>{this._init(t,r,e,a,i,((e,t,r)=>{e,t,r}),null,null,n,o)}))}))}getWidgetDocument(e,t){var r,i;return`\n <script type="text/javascript" src="${`${q.C.baseUrl}/v2.10.4/dist/js/storyReader.js`}"><\/script>\n ${(Array.isArray(null===(r=this.options)||void 0===r?void 0:r.storyWidgetsResources)?null===(i=this.options)||void 0===i?void 0:i.storyWidgetsResources:[]).map((e=>"js"===e.type?`<script type="text/javascript" src="${e.src}" data-hid="${(0,z.F)(e.src)}"><\/script>`:"")).join("")}\n\n <div id="app"><div id="_app"></div></div>\n <script type="text/javascript" nonce="${t}">\n window.storyReader.init(${JSON.stringify(e)});\n <\/script>\n`}_init(e,t,r,i,n,o,s,a,l,d){const c=Object.create(null,{__init:{get:()=>super.__init}});return H(this,void 0,void 0,(function*(){return n.fullScreen=!0,n.scrolling=!1,n.hidden=!0,o=(e,t,r)=>{this.rpc=r,this.iframe=t},c.__init.call(this,e,t,r,i,n,o,s,a,l,d)}))}rpcCb(e,t){var r;null===(r=this.rpc)||void 0===r||r.callMethod(e,t)}sessionInit(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onSessionInit",e)}openReader(e,t){var r;this.options=Object.assign(Object.assign({},this.options),{sourceInfo:t}),null===(r=this.rpc)||void 0===r||r.callMethod("onOpenReader",e)}closeReader(){var e;null===(e=this.rpc)||void 0===e||e.callMethod("onCloseReader")}closeGoodsWidget(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onCloseGoodsWidget",e)}syncStoreHandle(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onSyncStore",e)}setStories(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setStories",e)}setStoriesAndContext(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onSetStoriesAndContext",e)}setFonts(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setFonts",e)}_destroyClientWidget(){this.rpc.callMethod("destroyWidget")}setOptions(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setOptions",e)}pauseAndBlockViewerUI(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("pauseAndBlockViewerUI",e)}resumeAndEnableViewerUI(){var e;null===(e=this.rpc)||void 0===e||e.callMethod("resumeAndEnableViewerUI")}setStoryWidgetsResources(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setStoryWidgetsResources",e)}}var Y=__webpack_require__(1085),K=__webpack_require__(9155);var Q=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),X=Math.abs,J=String.fromCharCode,Z=Object.assign;function ee(e){return e.trim()}function te(e,t,r){return e.replace(t,r)}function re(e,t){return e.indexOf(t)}function ie(e,t){return 0|e.charCodeAt(t)}function ne(e,t,r){return e.slice(t,r)}function oe(e){return e.length}function se(e){return e.length}function ae(e,t){return t.push(e),e}var le=1,de=1,ce=0,ue=0,pe=0,fe="";function he(e,t,r,i,n,o,s){return{value:e,root:t,parent:r,type:i,props:n,children:o,line:le,column:de,length:s,return:""}}function ge(e,t){return Z(he("",null,null,"",null,null,0),e,{length:-e.length},t)}function ve(){return pe=ue>0?ie(fe,--ue):0,de--,10===pe&&(de=1,le--),pe}function me(){return pe=ue<ce?ie(fe,ue++):0,de++,10===pe&&(de=1,le++),pe}function ye(){return ie(fe,ue)}function _e(){return ue}function be(e,t){return ne(fe,e,t)}function we(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Se(e){return le=de=1,ce=oe(fe=e),ue=0,[]}function Ce(e){return fe="",e}function ke(e){return ee(be(ue-1,xe(91===e?e+2:40===e?e+1:e)))}function Oe(e){for(;(pe=ye())&&pe<33;)me();return we(e)>2||we(pe)>3?"":" "}function Le(e,t){for(;--t&&me()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return be(e,_e()+(t<6&&32==ye()&&32==me()))}function xe(e){for(;me();)switch(pe){case e:return ue;case 34:case 39:34!==e&&39!==e&&xe(pe);break;case 40:41===e&&xe(e);break;case 92:me()}return ue}function Ae(e,t){for(;me()&&e+pe!==57&&(e+pe!==84||47!==ye()););return"/*"+be(t,ue-1)+"*"+J(47===e?e:me())}function Ee(e){for(;!we(ye());)me();return be(e,ue)}var Me="-ms-",Te="-moz-",Re="-webkit-",Ie="comm",Pe="rule",Fe="decl",je="@keyframes";function De(e,t){for(var r="",i=se(e),n=0;n<i;n++)r+=t(e[n],n,e,t)||"";return r}function Be(e,t,r,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Fe:return e.return=e.return||e.value;case Ie:return"";case je:return e.return=e.value+"{"+De(e.children,i)+"}";case Pe:e.value=e.props.join(",")}return oe(r=De(e.children,i))?e.return=e.value+"{"+r+"}":""}function Ne(e){return Ce(Ue("",null,null,null,[""],e=Se(e),0,[0],e))}function Ue(e,t,r,i,n,o,s,a,l){for(var d=0,c=0,u=s,p=0,f=0,h=0,g=1,v=1,m=1,y=0,_="",b=n,w=o,S=i,C=_;v;)switch(h=y,y=me()){case 40:if(108!=h&&58==ie(C,u-1)){-1!=re(C+=te(ke(y),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:C+=ke(y);break;case 9:case 10:case 13:case 32:C+=Oe(h);break;case 92:C+=Le(_e()-1,7);continue;case 47:switch(ye()){case 42:case 47:ae($e(Ae(me(),_e()),t,r),l);break;default:C+="/"}break;case 123*g:a[d++]=oe(C)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==m&&(C=te(C,/\f/g,"")),f>0&&oe(C)-u&&ae(f>32?Ge(C+";",i,r,u-1):Ge(te(C," ","")+";",i,r,u-2),l);break;case 59:C+=";";default:if(ae(S=We(C,t,r,d,c,n,a,_,b=[],w=[],u),o),123===y)if(0===c)Ue(C,t,S,S,b,o,u,a,w);else switch(99===p&&110===ie(C,3)?100:p){case 100:case 108:case 109:case 115:Ue(e,S,S,i&&ae(We(e,S,S,0,0,n,a,_,n,b=[],u),w),n,w,u,a,i?b:w);break;default:Ue(C,S,S,S,[""],w,0,a,w)}}d=c=f=0,g=m=1,_=C="",u=s;break;case 58:u=1+oe(C),f=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==ve())continue;switch(C+=J(y),y*g){case 38:m=c>0?1:(C+="\f",-1);break;case 44:a[d++]=(oe(C)-1)*m,m=1;break;case 64:45===ye()&&(C+=ke(me())),p=ye(),c=u=oe(_=C+=Ee(_e())),y++;break;case 45:45===h&&2==oe(C)&&(g=0)}}return o}function We(e,t,r,i,n,o,s,a,l,d,c){for(var u=n-1,p=0===n?o:[""],f=se(p),h=0,g=0,v=0;h<i;++h)for(var m=0,y=ne(e,u+1,u=X(g=s[h])),_=e;m<f;++m)(_=ee(g>0?p[m]+" "+y:te(y,/&\f/g,p[m])))&&(l[v++]=_);return he(e,t,r,0===n?Pe:a,l,d,c)}function $e(e,t,r){return he(e,t,r,Ie,J(pe),ne(e,2,-2),0)}function Ge(e,t,r,i){return he(e,t,r,Fe,ne(e,0,i),ne(e,i+1,-1),i)}var qe=function(e,t,r){for(var i=0,n=0;i=n,n=ye(),38===i&&12===n&&(t[r]=1),!we(n);)me();return be(e,ue)},ze=function(e,t){return Ce(function(e,t){var r=-1,i=44;do{switch(we(i)){case 0:38===i&&12===ye()&&(t[r]=1),e[r]+=qe(ue-1,t,r);break;case 2:e[r]+=ke(i);break;case 4:if(44===i){e[++r]=58===ye()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=J(i)}}while(i=me());return e}(Se(e),t))},He=new WeakMap,Ve=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||He.get(r))&&!i){He.set(e,!0);for(var n=[],o=ze(t,n),s=r.props,a=0,l=0;a<o.length;a++)for(var d=0;d<s.length;d++,l++)e.props[l]=n[a]?o[a].replace(/&\f/g,s[d]):s[d]+" "+o[a]}}},Ye=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ke(e,t){switch(function(e,t){return 45^ie(e,0)?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}(e,t)){case 5103:return Re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Re+e+Te+e+Me+e+e;case 6828:case 4268:return Re+e+Me+e+e;case 6165:return Re+e+Me+"flex-"+e+e;case 5187:return Re+e+te(e,/(\w+).+(:[^]+)/,Re+"box-$1$2"+Me+"flex-$1$2")+e;case 5443:return Re+e+Me+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return Re+e+Me+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return Re+e+Me+te(e,"shrink","negative")+e;case 5292:return Re+e+Me+te(e,"basis","preferred-size")+e;case 6060:return Re+"box-"+te(e,"-grow","")+Re+e+Me+te(e,"grow","positive")+e;case 4554:return Re+te(e,/([^-])(transform)/g,"$1"+Re+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,Re+"$1"),/(image-set)/,Re+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,Re+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,Re+"box-pack:$3"+Me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Re+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,Re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(oe(e)-1-t>6)switch(ie(e,t+1)){case 109:if(45!==ie(e,t+4))break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+Te+(108==ie(e,t+3)?"$3":"$2-$3"))+e;case 115:return~re(e,"stretch")?Ke(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ie(e,t+1))break;case 6444:switch(ie(e,oe(e)-3-(~re(e,"!important")&&10))){case 107:return te(e,":",":"+Re)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Re+(45===ie(e,14)?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Me+"$2box$3")+e}break;case 5936:switch(ie(e,t+11)){case 114:return Re+e+Me+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Me+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Me+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Re+e+Me+e+e}return e}var Qe=[function(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case Fe:e.return=Ke(e.value,e.length);break;case je:return De([ge(e,{value:te(e.value,"@","@"+Re)})],i);case Pe:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return De([ge(e,{props:[te(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return De([ge(e,{props:[te(t,/:(plac\w+)/,":"+Re+"input-$1")]}),ge(e,{props:[te(t,/:(plac\w+)/,":-moz-$1")]}),ge(e,{props:[te(t,/:(plac\w+)/,Me+"input-$1")]})],i)}return""}))}}],Xe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||Qe;var n,o,s={},a=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;a.push(e)}));var l,d,c,u,p=[Be,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=(d=[Ve,Ye].concat(i,p),c=se(d),function(e,t,r,i){for(var n="",o=0;o<c;o++)n+=d[o](e,t,r,i)||"";return n});o=function(e,t,r,i){l=r,De(Ne(e?e+"{"+t.styles+"}":t.styles),f),i&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Q({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return h.sheet.hydrate(a),h};function Je(e,t,r){var i="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):i+=r+" "})),i}var Ze=function(e,t,r){var i=e.key+"-"+t.name;!1===r&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},et=function(e,t,r){Ze(e,t,r);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+i:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}};var tt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function rt(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var it=/[A-Z]|^ms/g,nt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ot=function(e){return 45===e.charCodeAt(1)},st=function(e){return null!=e&&"boolean"!=typeof e},at=rt((function(e){return ot(e)?e:e.replace(it,"-$&").toLowerCase()})),lt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(nt,(function(e,t,r){return ct={name:t,styles:r,next:ct},t}))}return 1===tt[e]||ot(e)||"number"!=typeof t||0===t?t:t+"px"};function dt(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return ct={name:r.name,styles:r.styles,next:ct},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)ct={name:i.name,styles:i.styles,next:ct},i=i.next;return r.styles+";"}return function(e,t,r){var i="";if(Array.isArray(r))for(var n=0;n<r.length;n++)i+=dt(e,t,r[n])+";";else for(var o in r){var s=r[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?i+=o+"{"+t[s]+"}":st(s)&&(i+=at(o)+":"+lt(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=dt(e,t,s);switch(o){case"animation":case"animationName":i+=at(o)+":"+a+";";break;default:i+=o+"{"+a+"}"}}else for(var l=0;l<s.length;l++)st(s[l])&&(i+=at(o)+":"+lt(o,s[l])+";")}return i}(e,t,r);case"function":if(void 0!==e){var n=ct,o=r(e);return ct=n,dt(e,t,o)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var ct,ut=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var pt=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,n="";ct=void 0;var o=e[0];null==o||void 0===o.raw?(i=!1,n+=dt(r,t,o)):n+=o[0];for(var s=1;s<e.length;s++)n+=dt(r,t,e[s]),i&&(n+=o[s]);ut.lastIndex=0;for(var a,l="";null!==(a=ut.exec(n));)l+="-"+a[1];var d=function(e){for(var t,r=0,i=0,n=e.length;n>=4;++i,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(n)+l;return{name:d,styles:n,next:ct}},ft=!!K.useInsertionEffect&&K.useInsertionEffect,ht=ft||function(e){return e()},gt=(ft||K.useLayoutEffect,{}.hasOwnProperty),vt=K.createContext("undefined"!=typeof HTMLElement?Xe({key:"css"}):null);var mt=vt.Provider,yt=function(e){return(0,K.forwardRef)((function(t,r){var i=(0,K.useContext)(vt);return e(t,i,r)}))};var _t=K.createContext({});var bt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wt=function(e,t){var r={};for(var i in t)gt.call(t,i)&&(r[i]=t[i]);return r[bt]=e,r},St=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return Ze(t,r,i),ht((function(){return et(t,r,i)})),null};var Ct=yt((function(e,t,r){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var n=e[bt],o=[i],s="";"string"==typeof e.className?s=Je(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var a=pt(o,void 0,K.useContext(_t));s+=t.key+"-"+a.name;var l={};for(var d in e)gt.call(e,d)&&"css"!==d&&d!==bt&&(l[d]=e[d]);return l.ref=r,l.className=s,K.createElement(K.Fragment,null,K.createElement(St,{cache:t,serialized:a,isStringTag:"string"==typeof n}),K.createElement(n,l))})),kt=(__webpack_require__(5985),Y.Fragment);function Ot(e,t,r){return gt.call(t,"css")?Y.jsx(Ct,wt(e,t),r):Y.jsx(e,t,r)}function Lt(e,t,r){return gt.call(t,"css")?Y.jsxs(Ct,wt(e,t),r):Y.jsxs(e,t,r)}var xt=__webpack_require__(9514),At=__webpack_require__.n(xt),Et=__webpack_require__(7791),Mt=__webpack_require__(7875);!function(){const e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;window.requestAnimationFrame=e}();const Tt=function(){let e,t=document.createElement("div"),r={transition:"transitionend",OTransition:"otransitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in r)if(r.hasOwnProperty(e)&&void 0!==t.style[e])return r[e]}();function Rt(e,t,r){return new Mt.Promise((i=>{let n=!1;const o=()=>{n=!0,clearTimeout(a),void 0!==Tt&&e.removeEventListener(Tt,s),e.style.setProperty("transition",`${t} 0ms`),i()},s=e=>{e.propertyName===t&&(n||o())};void 0!==Tt&&e.addEventListener(Tt,s,!1);const a=setTimeout((()=>{n||o()}),r+20);e.style.setProperty("transition",`${t} ${r}ms`)}))}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},It.apply(this,arguments)}var Pt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ft=rt((function(e){return Pt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),jt=function(e){return"theme"!==e},Dt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ft:jt},Bt=function(e,t,r){var i;if(t){var n=t.shouldForwardProp;i=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof i&&r&&(i=e.__emotion_forwardProp),i},Nt=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return Ze(t,r,i),ht((function(){return et(t,r,i)})),null},Ut=function e(t,r){var i,n,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==r&&(i=r.label,n=r.target);var a=Bt(t,r,o),l=a||Dt(s),d=!l("as");return function(){var c=arguments,u=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&u.push("label:"+i+";"),null==c[0]||void 0===c[0].raw)u.push.apply(u,c);else{0,u.push(c[0][0]);for(var p=c.length,f=1;f<p;f++)u.push(c[f],c[0][f])}var h=yt((function(e,t,r){var i=d&&e.as||s,o="",c=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=K.useContext(_t)}"string"==typeof e.className?o=Je(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var h=pt(u.concat(c),t.registered,p);o+=t.key+"-"+h.name,void 0!==n&&(o+=" "+n);var g=d&&void 0===a?Dt(i):l,v={};for(var m in e)d&&"as"===m||g(m)&&(v[m]=e[m]);return v.className=o,v.ref=r,K.createElement(K.Fragment,null,K.createElement(Nt,{cache:t,serialized:h,isStringTag:"string"==typeof i}),K.createElement(i,v))}));return h.displayName=void 0!==i?i:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=u,h.__emotion_forwardProp=a,Object.defineProperty(h,"toString",{value:function(){return"."+n}}),h.withComponent=function(t,i){return e(t,It({},r,i,{shouldForwardProp:Bt(h,i,!0)})).apply(void 0,u)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Ut[e]=Ut(e)}));function Wt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pt(t)}var $t=function(){var e=Wt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};var Gt=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const qt=e=>{const t=(0,K.useRef)(null),r=(0,K.useRef)(null);let i,n=(0,K.useRef)(0),o=(0,K.useRef)(0);const s=()=>{r.current&&(o.current=-1*(0,Et.j9)(r.current).x)},[a,l]=(0,K.useState)(!1),[d,c]=(0,K.useState)(!1),u=(0,K.useRef)(!1),p=()=>{const t=K.Children.count(e.children);return r.current&&t?r.current.scrollWidth/t:0};let f=!1;(0,K.useEffect)((()=>{var e;return("ontouchstart"in window||window.navigator.msPointerEnabled||"ontouchstart"in document.documentElement)&&(f=!0),f||(r.current&&(i=null===(e=r.current.children[0])||void 0===e?void 0:e.offsetWidth),r.current&&(n.current=r.current.scrollWidth-r.current.clientWidth,s()),n.current===o.current?c(!1):c(!0),0===o.current?l(!1):l(!0)),()=>{}}),[]);let h=(0,K.useRef)(!1),g=(0,K.useRef)(0),v=0;const m=(0,K.useRef)(!1),[y,_]=(0,K.useState)(0),b=e=>{e<0&&(e=0),e>n.current&&(e=n.current),_(e)};(0,K.useEffect)((()=>{y===n.current?c(!1):c(!0),l(0!==y)}),[y]);const w=e=>{if(!u.current)if(h.current){const t=e instanceof MouseEvent?e.pageX:e.touches&&e.touches[0].pageX;if(t!==g.current){m.current=!0,v=t;const e=g.current-v;let r=o.current+e;b(r)}}else m.current=!1},S=e=>{m.current&&e.preventDefault(),setTimeout((()=>{m.current=!1})),h.current=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",S),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",S)};return Lt(zt,{cssStyle:e.style,children:[Ot(Ht,{ref:t,onMouseDown:e=>{u.current||(e.preventDefault(),h.current=!0,g.current=e.pageX,r.current&&(n.current=r.current.scrollWidth-r.current.clientWidth),r.current&&s(),document.addEventListener("mousemove",w),document.addEventListener("mouseup",S))},onTouchStart:e=>{u.current||(e.preventDefault(),h.current=!0,g.current=e.touches&&e.touches[0].pageX,r.current&&(n.current=r.current.scrollWidth-r.current.clientWidth),r.current&&s(),document.addEventListener("touchmove",w),document.addEventListener("touchend",S))},onClickCapture:e=>{m.current&&(e.preventDefault(),e.stopPropagation())},children:Ot(Vt,{ref:r,style:{transform:`translateX(${-1*y}px)`},children:e.children})}),!f&&Lt(kt,{children:[Ot(Kt,{position:Yt.LEFT,show:a,onClick:e=>Gt(void 0,void 0,void 0,(function*(){if(u.current)return;s();let e=o.current-p();b(e),u.current=!0,r.current&&(yield Rt(r.current,"transform",300)),u.current=!1})),children:Ot("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Ot("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})}),Ot(Kt,{position:Yt.RIGHT,show:d,onClick:e=>Gt(void 0,void 0,void 0,(function*(){if(u.current)return;s();let e=o.current+p();b(e),u.current=!0,r.current&&(yield Rt(r.current,"transform",300)),u.current=!1})),children:Ot("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Ot("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})})})]})]})},zt=Ut("div")({position:"relative"},(e=>Object.assign({},e.cssStyle))),Ht=Ut.div`
27
+ */!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,n(r)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)i.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},1810:(e,t,r)=>{"use strict";function i(e,t){for(let r in e)t(e[r],r)}function o(e,t){e.forEach(t)}function n(e,t){if(!e)throw Error(t)}function s({node:e=[],from:t,source:r,parent:i=t||r,to:n,target:s,child:a=n||s,scope:l={},meta:d={},family:c={type:"regular"},regional:u}={}){let p=ee(i),f=ee(c.links),h=ee(c.owners),g=[];o(e,(e=>e&&W(g,e)));let v={id:V(),seq:g,next:ee(a),meta:d,scope:l,family:{type:c.type||"crosslink",links:f,owners:h}};return o(f,(e=>W(L(e),v))),o(h,(e=>W(x(e),v))),o(p,(e=>W(e.next,v))),u&&K&&Z(E(K),[v]),v}function a(e,t,r){let i,n=Fe,s=null,a=Te;if(e.target&&(t=e.params,r=e.defer,i=e.meta,n="page"in e?e.page:n,e.stack&&(s=e.stack),a=R(e)||a,e=e.target),a&&Te&&a!==Te&&(Te=null),Array.isArray(e))for(let r=0;r<e.length;r++)xe("pure",n,O(e[r]),s,t[r],a,i);else xe("pure",n,O(e),s,t,a,i);if(r&&!Re)return;let l,d,c,u,p,f,h={isRoot:Re,currentPage:Fe,scope:Te,isWatch:Ie,isPure:Pe};Re=0;e:for(;u=Le();){let{idx:e,stack:t,type:r}=u;c=t.node,Fe=p=t.page,Te=R(t),p?f=p.reg:Te&&(f=Te.reg);let i=!!p,n=!!Te,s={fail:0,scope:c.scope};l=d=0;for(let o=e;o<c.seq.length&&!l;o++){let a=c.seq[o];if(a.order){let{priority:i,barrierID:n}=a.order,s=n?p?`${p.fullID}_${n}`:n:0;if(o!==e||r!==i){n?Me.has(s)||(Me.add(s),Ae(o,t,i,n)):Ae(o,t,i);continue e}n&&Me.delete(s)}switch(a.type){case"mov":{let e,r=a.data;switch(r.from){case k:e=E(t);break;case"a":case"b":e=t[r.from];break;case"value":e=r.store;break;case"store":if(f&&!f[r.store.id])if(i){let e=Be(p,r.store.id);t.page=p=e,e?f=e.reg:n?($e(Te,r.store,0,1,r.softRead),f=Te.reg):f=void 0}else n&&$e(Te,r.store,0,1,r.softRead);e=be(f&&f[r.store.id]||r.store)}switch(r.to){case k:t.value=e;break;case"a":case"b":t[r.to]=e;break;case"store":Ue(p,Te,c,r.target).current=e}break}case"compute":let e=a.data;if(e.fn){Ie="watch"===I(c,"op"),Pe=e.pure;let r=e.safe?(0,e.fn)(E(t),s.scope,t):Ge(s,e.fn,t);e.filter?d=!r:t.value=r,Ie=h.isWatch,Pe=h.isPure}}l=s.fail||d}if(Ne&&Ne(t,s),!l){let e=E(t),r=R(t);if(o(c.next,(i=>{xe("child",p,i,t,e,r)})),r){I(c,"needFxCounter")&&xe("child",p,r.fxCount,t,e,r),I(c,"storeChange")&&xe("child",p,r.storeChange,t,e,r),I(c,"warnSerialize")&&xe("child",p,r.warnSerializeNode,t,e,r);let i=r.additionalLinks[c.id];i&&o(i,(i=>{xe("child",p,i,t,e,r)}))}}}Re=h.isRoot,Fe=h.currentPage,Te=R(h)}function l(e,t="combine"){let r=t+"(",o="",n=0;return i(e,(e=>{n<25&&(null!=e&&(r+=o,r+=D(e)?F(e).fullName:e.toString()),n+=1,o=", ")})),r+")"}function d(e,t){let r,i,o=e;if(t){let o=F(t);0===e.length?(r=o.path,i=o.fullName):(r=o.path.concat([e]),i=0===o.fullName.length?e:o.fullName+"/"+e)}else r=0===e.length?[]:[e],i=e;return{shortName:o,fullName:i,path:r}}function c(e,t){let r=t?e:e[0];oe(r);let i=r.or,o=r.and;if(o){let r=t?o:o[0];if(te(r)&&"and"in r){let r=c(o,t);e=r[0],i={...i,...r[1]}}else e=o}return[e,i]}function u(e,...t){let r=X();if(r){let i=r.handlers[e];if(i)return i(r,...t)}}function p(e,t){let r=qe({or:t,and:"string"==typeof e?{name:e}:e}),i=(e,...t)=>($(!I(i,"derived"),"call of derived event","createEvent"),$(!Pe,"unit call from pure function","operators like sample"),Fe?((e,t,r,i)=>{let o=Fe,n=null;if(t)for(n=Fe;n&&n.template!==t;)n=T(n);je(n);let s=e.create(r,i);return je(o),s})(i,o,e,t):i.create(e,t)),o=X(),n=Object.assign(i,{graphite:s({meta:et(r.actualOp||"event",i,r),regional:1}),create:e=>(a({target:i,params:e,scope:Te}),e),watch:e=>Je(i,e),map:e=>tt(i,C,e,[ye()]),filter:e=>tt(i,"filter",e.fn?e:e.fn,[ye(ce,1)]),filterMap:e=>tt(i,"filterMap",e,[ye(),ve((e=>!ie(e)),1)]),prepend(e){let t=p("* → "+i.shortName,{parent:T(i)});return u("eventPrepend",O(t)),Qe(t,i,[ye()],"prepend",e),Ze(i,t),t}});return null!=r&&r.domain&&r.domain.hooks.event(n),P(n,"id",n.graphite.id),Q(n.graphite),n}function f(e,t,r,i){return se(r,t,"first argument"),n(re(i),"second argument should be a function"),$(!I(e,"derived"),`${t} in derived store`,`${t} in store created via createStore`),o(Array.isArray(r)?r:[r],(t=>{e.off(t),M(e).set(t,Ke(rt(t,e,"on",de,i)))})),e}function h(e,t){let r=qe(t),i=_e(e),l=p({named:"updates",derived:1});u("storeBase",i);let d=i.id,c={subscribers:new Map,updates:l,defaultState:e,stateRef:i,getState(){let e,t=i;if(Fe){let t=Fe;for(;t&&!t.reg[d];)t=T(t);t&&(e=t)}return!e&&Te&&($e(Te,i,1),e=Te),e&&(t=e.reg[d]),be(t)},setState:e=>a({target:c,params:e,defer:1,scope:Te}),reset:(...e)=>(o(e,(e=>f(c,".reset",e,(()=>c.defaultState)))),c),on:(e,t)=>f(c,".on",e,t),off(e){let t=M(c).get(e);return t&&(t(),M(c).delete(e)),c},map(e,t){let r,o;te(e)&&(r=e,e=e.fn),$(ie(t),"second argument of store.map","updateFilter");let n=c.getState();X()?o=null:ie(n)||(o=e(n,t));let s=h(o,{name:`${c.shortName} → *`,derived:1,and:r}),a=rt(c,s,C,le,e);return we(A(s),{type:C,fn:e,from:i}),A(s).noInit=1,u("storeMap",i,a),s},watch(e,t){if(!t||!D(e)){let t=Je(c,e);return u("storeWatch",i,e)||e(c.getState()),t}return n(re(t),"second argument should be a function"),e.watch((e=>t(c.getState(),e)))}},g=et("store",c,r),v=c.defaultConfig.updateFilter;c.graphite=s({scope:{state:i,fn:v},node:[ve(((e,t,r)=>(r.scope&&!r.scope.reg[i.id]&&(r.b=1),e))),me(i),ve(((e,t,{a:r,b:i})=>!ie(e)&&(e!==r||i)),1),v&&ye(le,1),fe({from:k,target:i})],child:l,meta:{...g,defaultState:e},regional:1}),P(c,"id",c.graphite.id),P(c,"rootStateRefId",d);let m=I(c,"serialize"),y=I(c,"derived"),_="ignore"===m,b=I(c,"sid");return b&&(P(c,"storeChange",1),i.sid=b),b||_||y||P(c,"warnSerialize",1),n(y||!ie(e),"current state can't be undefined, use null instead"),Z(c,[l]),null!=r&&r.domain&&r.domain.hooks.store(c),y||(c.reinit=p({named:"reinit"}),c.reset(c.reinit)),i.meta=c.graphite.meta,Q(c.graphite),c}function g(...e){let t,r,i;[e,i]=c(e);let o,s,a,l=e[e.length-1];if(re(l)?(r=e.slice(0,-1),t=l):r=e,1===r.length){let e=r[0];B(e)||(o=e,s=1)}if(!s&&(o=r,t)){a=1;let e=t;t=t=>e(...t)}return n(te(o),"shape should be an object"),it(Array.isArray(o),!a,o,i,t)}function v(){let e={};return e.req=new Promise(((t,r)=>{e.rs=t,e.rj=r})),e.req.catch((()=>{})),e}function m(e,t={}){let r=qe(re(e)?{handler:e}:e,t),i=p(re(e)?{handler:e}:e,{...t,actualOp:"effect"}),o=O(i);P(o,"op",i.kind="effect"),i.use=e=>(n(re(e),".use argument should be a function"),g.scope.handler=e,i),i.use.getCurrent=()=>g.scope.handler;let l=i.finally=p({named:"finally",derived:1}),d=i.done=l.filterMap({named:"done",fn({status:e,params:t,result:r}){if("done"===e)return{params:t,result:r}}}),c=i.fail=l.filterMap({named:"fail",fn({status:e,params:t,error:r}){if("fail"===e)return{params:t,error:r}}}),u=i.doneData=d.map({named:"doneData",fn:({result:e})=>e}),f=i.failData=c.map({named:"failData",fn:({error:e})=>e}),g=s({scope:{handler:i.defaultConfig.handler||(()=>n(0,`no handler used in ${i.getType()}`))},node:[ve(((e,t,r)=>{let o=t.handler,n=R(r);if(n){let e=n.handlers.unitMap.get(i)||n.handlers.sidMap[i.sid];e&&(o=e)}return e.handler=o,e}),0,1),ve((({params:e,req:t,handler:r,args:i=[e]},o,n)=>{let s=nt(n),a=st(e,t,1,l,n,s),d=st(e,t,0,l,n,s),[c,u]=ot(r,d,i);c&&(te(u)&&re(u.then)?u.then(a,d):a(u))}),0,1)],meta:{op:"fx",fx:"runner"}});o.scope.runner=g,W(o.seq,ve(((e,{runner:t},r)=>{let i=T(r)?{params:e,req:{rs(e){},rj(e){}}}:e;return r.meta||(r.meta={fxID:Y()}),a({target:t,params:i,defer:1,scope:R(r),meta:r.meta}),i.params}),0,1)),i.create=e=>{let t=v(),r={params:e,req:t};if(Te&&!Ie){let e=Te;t.req.finally((()=>{De(e)})).catch((()=>{}))}return a({target:i,params:r,scope:Te}),t.req};let m=i.inFlight=h(0,{serialize:"ignore",named:(I(i,"name")||i.graphite.id)+".inFlight"}).on(i,(e=>e+1)).on(l,(e=>e-1)).map({fn:e=>e,named:"inFlight"});P(l,"needFxCounter","dec"),P(i,"needFxCounter",1);let y=i.pending=m.map({fn:e=>e>0,named:"pending"});return Z(i,[l,d,c,u,f,y,m]),null!=r&&r.domain&&r.domain.hooks.effect(i),i}function y(...e){let[[t,r],o]=c(e),n={};return i(r,((e,r)=>{let i=n[r]=p(r,{parent:T(t),config:o});t.on(i,e),Ze(t,i)})),n}function _(e,t){se(e,"merge","first argument");let r=p({name:l(e,"merge"),derived:1,and:t});return Qe(e,r,[],"merge"),r}function b(e,t){let r=0;return o(lt,(i=>{i in e&&(n(null!=e[i],dt(t,i)),r=1)})),r}function w(...e){let t,r,i,o,[[n,s,a],l]=c(e),d=1;return ie(s)&&te(n)&&b(n,"sample")&&(s=n.clock,a=n.fn,d=!n.greedy,o=n.filter,t=n.target,r=n.name,i=n.sid,n=n.source),ct("sample",s,n,o,t,a,r,l,d,1,0,i)}r.d(t,{EH:()=>m,XM:()=>w,lh:()=>p,sY:()=>Xe,xP:()=>y,y$:()=>h});let S="undefined"!=typeof Symbol&&Symbol.observable||"@@observable",C="map",k="stack",O=e=>e.graphite||e,L=e=>e.family.owners,x=e=>e.family.links,A=e=>e.stateRef,E=e=>e.value,M=e=>e.subscribers,T=e=>e.parent,R=e=>e.scope,I=(e,t)=>O(e).meta[t],P=(e,t,r)=>O(e).meta[t]=r,F=e=>e.compositeName,D=e=>(re(e)||te(e))&&"kind"in e;const j=e=>t=>D(t)&&t.kind===e;let B=j("store"),N=(j("event"),j("effect"),j("domain"));j("scope");let U=(e,t)=>{let r=e.indexOf(t);-1!==r&&e.splice(r,1)},W=(e,t)=>e.push(t),$=(e,t,r)=>!e&&console.error(`${t} is deprecated${r?`, use ${r} instead`:""}`);const G=()=>{let e=0;return()=>""+ ++e};let q,z=G(),H=G(),V=G(),Y=G(),K=null,Q=e=>{q&&q(e,K)},X=()=>K&&K.template,J=e=>(e&&K&&K.sidRoot&&(e=`${K.sidRoot}|${e}`),e),Z=(e,t)=>{let r=O(e);o(t,(e=>{let t=O(e);"domain"!==r.family.type&&(t.family.type="crosslink"),W(L(t),r),W(x(r),t)}))},ee=(e=[])=>(Array.isArray(e)?e:[e]).flat().map(O),te=e=>"object"==typeof e&&null!==e,re=e=>"function"==typeof e,ie=e=>void 0===e,oe=e=>n(te(e)||re(e),"expect first argument be an object");const ne=(e,t,r,i)=>n(!(!te(e)&&!re(e)||!("family"in e)&&!("graphite"in e)),`${t}: expect ${r} to be a unit (store, event or effect)${i}`);let se=(e,t,r)=>{Array.isArray(e)?o(e,((e,i)=>ne(e,t,`${i} item of ${r}`,""))):ne(e,t,r," or array of units")},ae=(e,t,r="target")=>o(ee(t),(t=>$(!I(t,"derived"),`${e}: derived unit in "${r}"`,"createEvent/createStore"))),le=(e,{fn:t},{a:r})=>t(e,r),de=(e,{fn:t},{a:r})=>t(r,e),ce=(e,{fn:t})=>t(e);const ue=(e,t,r,i)=>{let o={id:H(),type:e,data:t};return r&&(o.order={priority:r},i&&(o.order.barrierID=++pe)),o};let pe=0,fe=({from:e="store",store:t,target:r,to:i=(r?"store":k),batch:o,priority:n})=>ue("mov",{from:e,store:t,to:i,target:r},n,o),he=({fn:e,batch:t,priority:r,safe:i=0,filter:o=0,pure:n=0})=>ue("compute",{fn:e,safe:i,filter:o,pure:n},r,t),ge=({fn:e})=>he({fn:e,priority:"effect"}),ve=(e,t,r)=>he({fn:e,safe:1,filter:t,priority:r&&"effect"}),me=(e,t,r)=>fe({store:e,to:t?k:"a",priority:r&&"sampler",batch:1}),ye=(e=ce,t)=>he({fn:e,pure:1,filter:t}),_e=e=>({id:H(),current:e}),be=({current:e})=>e,we=(e,t)=>{e.before||(e.before=[]),W(e.before,t)},Se=null;const Ce=(e,t)=>{if(!e)return t;if(!t)return e;let r;return(e.v.type===t.v.type&&e.v.id>t.v.id||Ee(e.v.type)>Ee(t.v.type))&&(r=e,e=t,t=r),r=Ce(e.r,t),e.r=e.l,e.l=r,e},ke=[];let Oe=0;for(;Oe<6;)W(ke,{first:null,last:null,size:0}),Oe+=1;const Le=()=>{for(let e=0;e<6;e++){let t=ke[e];if(t.size>0){if(3===e||4===e){t.size-=1;let e=Se.v;return Se=Ce(Se.l,Se.r),e}1===t.size&&(t.last=null);let r=t.first;return t.first=r.r,t.size-=1,r.v}}},xe=(e,t,r,i,o,n,s)=>Ae(0,{a:null,b:null,node:r,parent:i,value:o,page:t,scope:n,meta:s},e),Ae=(e,t,r,i=0)=>{let o=Ee(r),n=ke[o],s={v:{idx:e,stack:t,type:r,id:i},l:null,r:null};3===o||4===o?Se=Ce(Se,s):(0===n.size?n.first=s:n.last.r=s,n.last=s),n.size+=1},Ee=e=>{switch(e){case"child":return 0;case"pure":return 1;case"read":return 2;case"barrier":return 3;case"sampler":return 4;case"effect":return 5;default:return-1}},Me=new Set;let Te,Re=1,Ie=0,Pe=0,Fe=null,De=e=>{Te=e},je=e=>{Fe=e};const Be=(e,t)=>{if(e){for(;e&&!e.reg[t];)e=T(e);if(e)return e}return null};let Ne,Ue=(e,t,r,i,o)=>{let n=Be(e,i.id);return n?n.reg[i.id]:t?($e(t,i,o),t.reg[i.id]):i};const We=e=>e;let $e=(e,t,r,i,n)=>{var s;let a=e.reg;if(a[t.id])return;let l=t.sid,d=null==t||null===(s=t.meta)||void 0===s?void 0:s.serialize,c=e.fromSerialize&&"ignore"!==d&&(null==d?void 0:d.read)||We,u={id:t.id,current:t.current,meta:t.meta};if(u.id in e.values.idMap)u.current=e.values.idMap[u.id];else if(l&&l in e.values.sidMap&&!(l in e.sidIdMap))u.current=c(e.values.sidMap[l]);else if(t.before&&!n){let n=0,s=r||!t.noInit||i;o(t.before,(t=>{switch(t.type){case C:{let o=t.from;if(o||t.fn){o&&$e(e,o,r,i);let n=o&&a[o.id].current;s&&(u.current=t.fn?t.fn(n):n)}break}case"field":n||(n=1,u.current=Array.isArray(u.current)?[...u.current]:{...u.current}),$e(e,t.from,r,i),s&&(u.current[t.field]=a[a[t.from.id].id].current)}}))}l&&(e.sidIdMap[l]=t.id),a[t.id]=u};const Ge=(e,t,r)=>{try{return t(E(r),e.scope,r)}catch(t){console.error(t),e.fail=1,e.failReason=t}};let qe=(e,t={})=>(te(e)&&(qe(e.or,t),i(e,((e,r)=>{ie(e)||"or"===r||"and"===r||(t[r]=e)})),qe(e.and,t)),t);const ze=(e,t)=>{U(e.next,t),U(L(e),t),U(x(e),t)},He=(e,t,r)=>{let i;e.next.length=0,e.seq.length=0,e.scope=null;let o=x(e);for(;i=o.pop();)ze(i,e),(t||r&&"sample"!==I(e,"op")||"crosslink"===i.family.type)&&He(i,t,"on"!==I(i,"op")&&r);for(o=L(e);i=o.pop();)ze(i,e),r&&"crosslink"===i.family.type&&He(i,t,"on"!==I(i,"op")&&r)},Ve=e=>e.clear();let Ye=(e,{deep:t}={})=>{let r=0;if(e.ownerSet&&e.ownerSet.delete(e),B(e))Ve(M(e));else if(N(e)){r=1;let t=e.history;Ve(t.events),Ve(t.effects),Ve(t.stores),Ve(t.domains)}He(O(e),!!t,r)},Ke=e=>{let t=()=>Ye(e);return t.unsubscribe=t,t},Qe=(e,t,r,i,o)=>s({node:r,parent:e,child:t,scope:{fn:o},meta:{op:i},family:{owners:[e,t],links:t},regional:1}),Xe=e=>{let t="forward",[{from:r,to:i},o]=c(e,1);return se(r,t,'"from"'),se(i,t,'"to"'),ae(t,i,"to"),Ke(s({parent:r,child:i,meta:{op:t,config:o},family:{},regional:1}))},Je=(e,t)=>(n(re(t),".watch argument should be a function"),Ke(s({scope:{fn:t},node:[ge({fn:ce})],parent:e,meta:{op:"watch"},family:{owners:e},regional:1}))),Ze=(e,t,r="event")=>{T(e)&&T(e).hooks[r](t)},et=(e,t,r)=>{let i=qe(r),o="domain"===e,n=z(),{sid:s=null,named:a=null,domain:l=null,parent:c=l}=i,u=a||i.name||(o?"":n),p=d(u,c),f={op:t.kind=e,name:t.shortName=u,sid:t.sid=J(s),named:a,unitId:t.id=n,serialize:i.serialize,derived:i.derived,config:i};if(t.parent=c,t.compositeName=p,t.defaultConfig=i,t.thru=e=>($(0,"thru","js pipe"),e(t)),t.getType=()=>p.fullName,!o){t.subscribe=e=>(oe(e),t.watch(re(e)?e:t=>e.next&&e.next(t))),t[S]=()=>t;let e=X();e&&(f.nativeTemplate=e)}return f};const tt=(e,t,r,i)=>{let o;te(r)&&(o=r,r=r.fn);let n=p({name:`${e.shortName} → *`,derived:1,and:o});return Qe(e,n,i,t,r),n},rt=(e,t,r,i,o)=>{let n=A(t),s=fe({store:n,to:"a",priority:"read"});r===C&&(s.data.softRead=1);let a=[s,ye(i)];return u("storeOnMap",n,a,B(e)&&A(e)),Qe(e,t,a,r,o)},it=(e,t,r,o,s)=>{let a=e?e=>[...e]:e=>({...e}),d=e?[]:{},c=a(d),p=_e(c),f=_e(1);p.type=e?"list":"shape",p.noInit=1,u("combineBase",p,f);let g=h(c,{name:l(r),derived:1,and:o}),v=A(g);v.noInit=1,P(g,"isCombine",1);let m=me(p);m.order={priority:"barrier"};let y=fe({store:v,to:"b",priority:"read"});y.data.softRead=1;let _=[ve(((e,t,r)=>(r.scope&&!r.scope.reg[p.id]&&(r.c=1),e))),m,fe({store:f,to:"b"}),ve(((e,{key:r},i)=>{if(i.c||e!==i.a[r])return t&&i.b&&(i.a=a(i.a)),i.a[r]=e,1}),1),fe({from:"a",target:p}),fe({from:"value",store:0,target:f}),fe({from:"value",store:1,target:f,priority:"barrier",batch:1}),me(p,1),s&&ye(),y];return i(r,((e,t)=>{if(!B(e))return n(!D(e)&&!ie(e),`combine expects a store in a field ${t}`),void(c[t]=d[t]=e);d[t]=e.defaultState,c[t]=e.getState();let r=Qe(e,g,_,"combine",s);r.scope.key=t;let i=A(e);we(p,{type:"field",field:t,from:i}),u("combineField",i,r)})),g.defaultShape=r,we(v,{type:C,from:p,fn:s}),X()||(g.defaultState=s?v.current=s(c):d),g};let ot=(e,t,r)=>{try{return[1,e(...r)]}catch(e){return t(e),[0,null]}},nt=e=>{let t=R(e),r={ref:t};return t&&W(t.activeEffects,r),r},st=(e,t,r,i,o,n)=>s=>{n.ref&&U(n.ref.activeEffects,n),a({target:[i,at],params:[r?{status:"done",params:e,result:s}:{status:"fail",params:e,error:s},{value:s,fn:r?t.rs:t.rj}],defer:1,page:o.page,scope:n.ref,meta:o.meta})};const at=s({node:[ge({fn:({fn:e,value:t})=>e(t)})],meta:{op:"fx",fx:"sidechain"}}),lt=["source","clock","target"],dt=(e,t)=>e+`: ${t} should be defined`;let ct=(e,t,r,i,o,s,a,l,d,c,f,v)=>{let m=!!o;n(!ie(r)||!ie(t),dt(e,"either source or clock"));let y=0;ie(r)?y=1:D(r)||(r=g(r)),ie(t)?t=r:(se(t,e,"clock"),Array.isArray(t)&&(t=_(t))),y&&(r=t),l||a||(a=r.shortName);let b="none";(f||i)&&(D(i)?b="unit":(n(re(i),"`filter` should be function or unit"),b="fn")),o?(se(o,e,"target"),ae(e,o)):"none"===b&&c&&B(r)&&B(t)?o=h(s?s(be(A(r)),be(A(t))):be(A(r)),{name:a,sid:v,or:l}):(o=p({name:a,derived:1,or:l}),u("sampleTarget",O(o)));let w=_e(),S=[];if("unit"===b){let[r,n]=pt(i,o,t,w,e);S=[...ut(n),...ut(r)]}let[C,L]=pt(r,o,t,w,e),x=Qe(t,o,[u("sampleSourceLoader"),fe({from:k,target:w}),...ut(L),me(C,1,d),...S,me(w),"fn"===b&&ye(((e,t,{a:r})=>i(e,r)),1),s&&ye(le),u("sampleSourceUpward",m)],e,s);return Z(r,[x]),Object.assign(x.meta,l,{joint:1}),o};const ut=e=>[me(e),ve(((e,t,{a:r})=>r),1)],pt=(e,t,r,i,o)=>{let n=B(e),a=n?A(e):_e(),l=_e(n);return n||s({parent:e,node:[fe({from:k,target:a}),fe({from:"value",store:1,target:l})],family:{owners:[e,t,r],links:t},meta:{op:o},regional:1}),u("sampleSource",l,a,i),[a,l]}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.nc=void 0;var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AppearanceManager:()=>L,StoryList:()=>gn,StoryListViewModel:()=>Kn,StoryManager:()=>ds,UGCStoryList:()=>vn});var e,t=__webpack_require__(46);!function(e){e.LEFT="left",e.RIGHT="right"}(e||(e={}));const r={hasFavorite:!1,hasLike:!1,hasShare:!1,closeButtonPosition:e.RIGHT,loader:{default:{color:"white",accentColor:"transparent"},custom:null},closeButton:{svgSrc:{baseState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M30 15.2115C30 23.4958 23.2843 30.2115 15 30.2115C6.71573 30.2115 0 23.4958 0 15.2115C0 6.92728 6.71573 0.211548 15 0.211548C23.2843 0.211548 30 6.92728 30 15.2115Z" fill="white"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.8309 10.0424C10.0969 9.77646 10.5281 9.77646 10.7941 10.0424L15 14.2483L19.2059 10.0424C19.4719 9.77646 19.9031 9.77646 20.1691 10.0424C20.4351 10.3084 20.4351 10.7397 20.1691 11.0057L15.9632 15.2115L20.1691 19.4174C20.4351 19.6834 20.4351 20.1147 20.1691 20.3807C19.9031 20.6466 19.4719 20.6466 19.2059 20.3807L15 16.1748L10.7941 20.3807C10.5281 20.6466 10.0969 20.6466 9.8309 20.3807C9.56492 20.1147 9.56492 19.6834 9.8309 19.4174L14.0368 15.2115L9.8309 11.0057C9.56492 10.7397 9.56492 10.3084 9.8309 10.0424Z" fill="#C2C2C4"/>\n</svg>'}},forceDesktopMode:void 0};var i,o,n,s,a,l;!function(e){e.CENTER="center",e.LEFT="left",e.RIGHT="right"}(i||(i={})),function(e){e.CIRCLE="circle",e.QUAD="quad",e.RECTANGLE="rectangle"}(o||(o={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(n||(n={})),function(e){e.CARD_INSIDE_BOTTOM="cardInsideBottom",e.CARD_OUTSIDE_TOP="cardOutsideTop",e.CARD_OUTSIDE_BOTTOM="cardOutsideBottom"}(s||(s={})),function(e){e.Medium="medium",e.High="high"}(a||(a={})),function(e){e.START_LOADER="startLoad",e.END_LOADER="endLoad"}(l||(l={}));const d={direction:"horizontal",card:{title:{font:'14px/1.2 system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',color:"#ffffff",padding:15,textAlign:n.LEFT,position:s.CARD_INSIDE_BOTTOM,display:!0,lineClamp:3},gap:10,height:70,aspectRatio:null,coverQuality:a.High,variant:o.CIRCLE,border:{radius:0,color:"black",width:2,gap:3,gradient:null},boxShadow:null,dropShadow:null,opacity:null,mask:{color:null,linearGradient:null},svgMask:null,opened:{border:{radius:null,color:null,width:null,gap:null,gradient:null},boxShadow:null,dropShadow:null,opacity:null,mask:{color:null,linearGradient:null},svgMask:null},coverLazyLoading:!1},favoriteCard:{title:{content:"Избранное",font:"normal",color:"#000",padding:15,textAlign:n.LEFT,position:s.CARD_INSIDE_BOTTOM,display:!0,lineClamp:3},gap:10,height:70,aspectRatio:null,coverQuality:a.High,coverLazyLoading:!1,variant:o.CIRCLE,border:{radius:0,color:"black",width:2,gap:3,gradient:null},boxShadow:null,dropShadow:null,opacity:null,mask:{color:null,linearGradient:null},svgMask:null,opened:{border:{radius:null,color:null,width:null,gap:null,gradient:null},boxShadow:null,dropShadow:null,opacity:null,mask:{color:null,linearGradient:null},svgMask:null}},sidePadding:20,topPadding:20,bottomPadding:20,bottomMargin:17,layout:{height:0,storiesListInnerHeight:null,backgroundColor:"transparent",sliderAlign:i.LEFT},navigation:{showControls:!1,controlsSize:48,controlsBackgroundColor:"white",controlsColor:"black"},ugcCard:{title:{content:null,font:'14px/1.2 system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',color:"#000",padding:15,textAlign:n.LEFT,position:s.CARD_INSIDE_BOTTOM,display:!0,lineClamp:3},gap:10,height:70,aspectRatio:null,coverQuality:a.High,coverLazyLoading:!1,variant:o.CIRCLE,border:{radius:0,color:"transparent",width:0,gap:0,gradient:null},boxShadow:null,dropShadow:null,opacity:null,mask:{color:null,linearGradient:null},svgMask:null,image:{svgSrc:{baseState:'<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M50 85.5C69.6061 85.5 85.5 69.6061 85.5 50C85.5 30.3939 69.6061 14.5 50 14.5C30.3939 14.5 14.5 30.3939 14.5 50C14.5 69.6061 30.3939 85.5 50 85.5Z" stroke="white" stroke-width="2"/>\n<path d="M50.5 34.5V65.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M34.5 49.5H65.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'}},backgroundColor:"#0c62f3"}};var c,u;!function(e){e.FLAT="flat",e.COVER="cover",e.CUBE="cube"}(c||(c={})),function(e){e.vk="vk",e.ok="ok",e.facebook="facebook",e.twitter="twitter",e.linkedin="linkedin",e.telegram="telegram"}(u||(u={}));const p={gameReaderOptions:{loader:{default:{color:"white",accentColor:"transparent"},custom:null}},scrollStyle:c.FLAT,timelineBlockTopOffset:8,actionPanelBottomOffset:0,borderRadius:12,loader:{default:{color:"white",accentColor:"transparent"},custom:null},recycleStoriesList:!1,closeOnLastSlideByTimer:!0,sharePanel:{targets:[...Object.values(u)],copyButton:{svgSrc:{baseState:'<svg width="31.5px" height="35px" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 20"><path d="M6.6 0a2 2 0 0 0-2 2v12c0 1.2.9 2 2 2h9a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2h-9Zm0 2h9v12h-9V2Z" fill="currentColor"/><path d="M2.6 20a2 2 0 0 1-2-2V5h2v13h10v2h-10Z" fill="currentColor"/></svg>'}},downloadButton:{svgSrc:{baseState:'<svg width="30" height="30" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor"><path d="M31 22a1 1 0 0 0-1 1v7H2v-7a1 1 0 0 0-2 0v8c0 .6.4 1 1 1h30c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"/><path d="M15.3 23.7c.4.4 1 .4 1.4 0l7-6.9c.4-.4.4-1 0-1.4a1 1 0 0 0-1.4 0L17 20.6V1a1 1 0 0 0-2 0v19.6l-5.3-5.2a1 1 0 0 0-1.4 0 1 1 0 0 0 0 1.4l7 7z"/></g></svg>'}}},commonBackdrop:{color:"rgba(51, 51, 51, 1)",backdropFilter:null},slideBackdrop:{opacity:.56,blur:30,linearGradientOverlay:["rgba(0, 0, 0, 0.1) 0%","rgba(0, 0, 0, 0.9) 100%"]},faviconApiUrl:"",likeButton:{svgSrc:{baseState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.96277 15.177L8.11552 15.1837C8.75334 15.1873 9.26846 15.7054 9.26846 16.3433V22.7329C9.26846 23.376 8.74519 23.8962 8.10215 23.8925L6.94939 23.8859C6.31157 23.8822 5.79645 23.3641 5.79645 22.7263V16.3366C5.79645 15.6936 6.31972 15.1733 6.96277 15.177Z" stroke="white" stroke-width="1.21546"/>\n<path d="M11.2546 15.0917L11.3801 23.0645C11.3867 23.4802 11.6013 23.8648 11.9516 24.0886C12.119 24.1955 12.4834 24.2735 12.4834 24.2735L13.1084 24.3569L13.9973 24.4541L15.9789 24.5912L17.4834 24.6365H18.9642L19.282 24.6229C19.7715 24.6018 20.258 24.5358 20.7354 24.4256L21.1038 24.3406C21.3122 24.2925 21.516 24.2263 21.7128 24.1428L21.7439 24.1295C22.0493 23.9999 22.3342 23.8269 22.59 23.6157L22.717 23.5108C22.873 23.382 23.0108 23.2326 23.1265 23.0666L23.1451 23.04C23.2426 22.9003 23.3217 22.7485 23.3804 22.5886L23.428 22.4586C23.5278 22.1867 23.5473 21.8918 23.4842 21.6092L23.4296 21.3645C23.4285 21.3594 23.4265 21.3544 23.4237 21.3499C23.4102 21.3285 23.4163 21.3002 23.4374 21.2862L23.7911 21.0504V21.0504C23.8452 21.0143 23.8957 20.9723 23.9416 20.9263V20.9263C23.99 20.8728 24.0444 20.8083 24.0805 20.7458L24.1361 20.6625C24.2924 20.3945 24.3931 20.0167 24.4083 19.7069L24.4118 19.6352C24.4205 19.458 24.4079 19.2804 24.3744 19.1062L24.3305 18.8986C24.325 18.8696 24.2749 18.7163 24.2611 18.6902L24.1718 18.5154C24.1644 18.5014 24.1898 18.473 24.1898 18.473L24.3653 18.2658C24.4983 18.1109 24.6033 17.9305 24.673 17.7386C24.7222 17.6035 24.7532 17.4657 24.775 17.3153L24.7889 17.1764L24.7957 17.0468C24.8164 16.8366 24.7978 16.6244 24.7409 16.421C24.6929 16.2496 24.6183 16.0868 24.5198 15.9385L24.1983 15.4542C24.1843 15.4367 24.1808 15.413 24.1891 15.3922L24.3081 15.1055C24.3652 14.9628 24.4224 14.6641 24.4391 14.4717L24.4307 14.2984C24.4026 14.0113 24.2405 13.6815 24.0757 13.4238L23.9912 13.3055C23.7236 12.9608 23.3474 12.7334 22.9388 12.5804L22.706 12.4932C22.3923 12.3758 22.0667 12.3327 21.7279 12.2916L21.3444 12.2597C20.89 12.2378 20.2444 12.2651 19.7945 12.3327L18.1092 12.5861C18.1014 12.5873 18.0935 12.5879 18.0857 12.5879H18.0692C17.991 12.5879 17.9276 12.5245 17.9276 12.4462C17.9276 12.4387 17.9282 12.4312 17.9293 12.4238L18.1222 11.3847L18.5408 9.72426C18.6303 9.39087 18.6888 9.04995 18.7158 8.70582L18.7581 8.1657C18.7857 7.81269 18.746 7.45764 18.6411 7.11944L18.6144 7.03332C18.52 6.72899 18.3649 6.44697 18.1583 6.20434L18.1116 6.14941C17.819 5.80563 17.4249 5.56351 16.9859 5.45788L16.7169 5.39313C16.4437 5.32739 16.1567 5.3518 15.8986 5.46269C15.6593 5.56548 15.4564 5.73766 15.316 5.95699L15.2994 5.98302C15.155 6.20866 15.0783 6.47094 15.0783 6.73882V7.10777C15.0783 7.45352 15.0109 7.79596 14.88 8.11598L14.1668 9.85969C13.9176 10.4691 13.6196 11.0573 13.2758 11.6188L12.5778 12.7586C12.4514 12.9651 12.3013 13.1561 12.1306 13.3278L12.0855 13.3731C11.6243 13.837 11.3317 14.442 11.2546 15.0917Z" stroke="white" stroke-width="1.21546"/>\n</svg>',activeState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.96277 15.1771L8.11552 15.1838C8.75334 15.1875 9.26846 15.7056 9.26846 16.3434V22.733C9.26846 23.3761 8.74519 23.8964 8.10215 23.8926L6.94939 23.886C6.31157 23.8823 5.79645 23.3642 5.79645 22.7264V16.3368C5.79645 15.6937 6.31972 15.1734 6.96277 15.1771Z" fill="white" stroke="white" stroke-width="1.21546"/>\n<path d="M11.2546 15.0918L11.3801 23.0646C11.3867 23.4803 11.6013 23.8649 11.9516 24.0888C12.119 24.1957 12.4834 24.2737 12.4834 24.2737L13.1084 24.357L13.9973 24.4542L15.9789 24.5913L17.4834 24.6367H18.9642L19.282 24.623C19.7715 24.6019 20.258 24.5359 20.7354 24.4257L21.1038 24.3407C21.3122 24.2926 21.516 24.2264 21.7128 24.1429L21.7439 24.1297C22.0493 24.0001 22.3342 23.827 22.59 23.6158L22.717 23.5109C22.873 23.3821 23.0108 23.2327 23.1265 23.0668L23.1451 23.0401C23.2426 22.9004 23.3217 22.7487 23.3804 22.5887L23.428 22.4588C23.5278 22.1868 23.5473 21.892 23.4842 21.6093L23.4296 21.3647C23.4285 21.3595 23.4265 21.3545 23.4237 21.3501C23.4102 21.3286 23.4163 21.3004 23.4374 21.2863L23.7911 21.0505V21.0505C23.8452 21.0144 23.8957 20.9724 23.9416 20.9265V20.9265C23.99 20.8729 24.0444 20.8084 24.0805 20.7459L24.1361 20.6626C24.2924 20.3946 24.3931 20.0168 24.4083 19.707L24.4118 19.6353C24.4205 19.4581 24.4079 19.2805 24.3744 19.1063L24.3305 18.8987C24.325 18.8697 24.2749 18.7165 24.2611 18.6904L24.1718 18.5155C24.1644 18.5015 24.1898 18.4732 24.1898 18.4732L24.3653 18.2659C24.4983 18.1111 24.6033 17.9306 24.673 17.7387C24.7222 17.6036 24.7532 17.4658 24.775 17.3154L24.7889 17.1765L24.7957 17.0469C24.8164 16.8367 24.7978 16.6245 24.7409 16.4211C24.6929 16.2497 24.6183 16.0869 24.5198 15.9386L24.1983 15.4543C24.1843 15.4368 24.1808 15.4131 24.1891 15.3923L24.3081 15.1056C24.3652 14.9629 24.4224 14.6642 24.4391 14.4718L24.4307 14.2985C24.4026 14.0114 24.2405 13.6817 24.0757 13.4239L23.9912 13.3056C23.7236 12.9609 23.3474 12.7336 22.9388 12.5805L22.706 12.4934C22.3923 12.3759 22.0667 12.3329 21.7279 12.2918L21.3444 12.2598C20.89 12.2379 20.2444 12.2652 19.7945 12.3329L18.1092 12.5863C18.1014 12.5874 18.0935 12.588 18.0857 12.588H18.0692C17.991 12.588 17.9276 12.5246 17.9276 12.4464C17.9276 12.4389 17.9282 12.4313 17.9293 12.4239L18.1222 11.3849L18.5408 9.72438C18.6303 9.391 18.6888 9.05007 18.7158 8.70594L18.7581 8.16582C18.7857 7.81281 18.746 7.45776 18.6411 7.11956L18.6144 7.03344C18.52 6.72911 18.3649 6.4471 18.1583 6.20446L18.1116 6.14953C17.819 5.80575 17.4249 5.56363 16.9859 5.458L16.7169 5.39325C16.4437 5.32751 16.1567 5.35192 15.8986 5.46281C15.6593 5.5656 15.4564 5.73778 15.316 5.95711L15.2994 5.98314C15.155 6.20878 15.0783 6.47106 15.0783 6.73895V7.10789C15.0783 7.45364 15.0109 7.79608 14.88 8.1161L14.1668 9.85982C13.9176 10.4692 13.6196 11.0574 13.2758 11.6189L12.5778 12.7588C12.4514 12.9652 12.3013 13.1562 12.1306 13.3279L12.0855 13.3732C11.6243 13.8371 11.3317 14.4421 11.2546 15.0918Z" fill="white" stroke="white" stroke-width="1.21546"/>\n</svg>'}},dislikeButton:{svgSrc:{baseState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M24.2033 13.6632C24.2033 14.3062 23.68 14.8265 23.037 14.8228L21.8842 14.8161C21.2464 14.8125 20.7313 14.2944 20.7313 13.6565V7.2669C20.7313 6.62385 21.2546 6.10359 21.8976 6.1073L23.0504 6.11395C23.6882 6.11762 24.2033 6.63572 24.2033 7.27355V13.6632Z" stroke="white" stroke-width="1.21547"/>\n<path d="M18.7451 14.9082L18.6196 6.93531C18.6131 6.51965 18.3984 6.13499 18.0481 5.91118C17.8808 5.80428 17.5164 5.72628 17.5164 5.72628L16.8914 5.64295L16.0025 5.54572L14.0208 5.4086L12.5164 5.36328H11.0356L10.7178 5.37695C10.2283 5.398 9.74173 5.46403 9.26432 5.57421L8.89596 5.65921C8.68758 5.7073 8.4838 5.7735 8.28695 5.85706L8.25581 5.87027C7.95049 5.99987 7.66551 6.17296 7.40975 6.38416L7.28278 6.48901C7.12677 6.61783 6.989 6.76725 6.87323 6.93318L6.85466 6.95981C6.75716 7.09955 6.67809 7.25128 6.6194 7.41124L6.57172 7.54119C6.47196 7.81311 6.45245 8.10797 6.51553 8.39066L6.57011 8.63528C6.57127 8.64045 6.57329 8.64539 6.5761 8.64989C6.58951 8.67134 6.58343 8.69958 6.56238 8.71361L6.20864 8.94944V8.94944C6.15453 8.98551 6.10408 9.0275 6.05811 9.07348V9.07348C6.00973 9.12703 5.95532 9.19155 5.91922 9.25403L5.86366 9.33737C5.70735 9.60533 5.60662 9.98309 5.59145 10.2929L5.58794 10.3646C5.57927 10.5418 5.59182 10.7194 5.62532 10.8937L5.66922 11.1012C5.6748 11.1302 5.72484 11.2835 5.73866 11.3096L5.82792 11.4845C5.83532 11.4984 5.80994 11.5268 5.80994 11.5268L5.63444 11.734C5.50143 11.8889 5.3965 12.0693 5.32674 12.2612C5.27758 12.3964 5.24658 12.5341 5.22478 12.6846L5.21089 12.8235L5.20405 12.953C5.18333 13.1632 5.20192 13.3755 5.25887 13.5788C5.30686 13.7503 5.38145 13.9131 5.47991 14.0614L5.80147 14.5456C5.81547 14.5631 5.81898 14.5868 5.81066 14.6076L5.69163 14.8944C5.63456 15.037 5.57739 15.3357 5.56065 15.5282L5.5691 15.7014C5.5972 15.9885 5.75924 16.3183 5.92402 16.576L6.00853 16.6943C6.2762 17.039 6.65231 17.2664 7.06099 17.4194L7.2938 17.5066C7.60742 17.624 7.93309 17.6671 8.27189 17.7082L8.65531 17.7401C9.10973 17.762 9.75538 17.7347 10.2053 17.6671L11.8906 17.4137C11.8984 17.4125 11.9062 17.4119 11.9141 17.4119H11.9305C12.0088 17.4119 12.0722 17.4753 12.0722 17.5536C12.0722 17.5611 12.0716 17.5686 12.0704 17.576L11.8775 18.6151L11.459 20.2756C11.3695 20.6089 11.3109 20.9499 11.284 21.294L11.2417 21.8341C11.214 22.1871 11.2537 22.5422 11.3586 22.8804L11.3853 22.9665C11.4797 23.2708 11.6349 23.5528 11.8414 23.7955L11.8882 23.8504C12.1808 24.1942 12.5749 24.4363 13.0138 24.5419L13.2829 24.6067C13.556 24.6724 13.8431 24.648 14.1012 24.5371C14.3404 24.4343 14.5434 24.2622 14.6837 24.0428L14.7004 24.0168C14.8448 23.7912 14.9215 23.5289 14.9215 23.261V22.892C14.9215 22.5463 14.9888 22.2039 15.1197 21.8838L15.8329 20.1401C16.0821 19.5308 16.3801 18.9425 16.7239 18.381L17.4219 17.2412C17.5483 17.0347 17.6984 16.8437 17.8691 16.6721L17.9142 16.6267C18.3755 16.1629 18.668 15.5578 18.7451 14.9082Z" stroke="white" stroke-width="1.21547"/>\n</svg>',activeState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M24.2035 13.6629C24.2035 14.3059 23.6803 14.8262 23.0372 14.8225L21.8845 14.8158C21.2466 14.8122 20.7315 14.2941 20.7315 13.6562V7.26655C20.7315 6.62348 21.2548 6.10322 21.8978 6.10693L23.0506 6.11358C23.6884 6.11725 24.2035 6.63535 24.2035 7.27319V13.6629Z" fill="white" stroke="white" stroke-width="1.21547"/>\n<path d="M18.7454 14.9079L18.6199 6.93496C18.6133 6.51929 18.3987 6.13463 18.0484 5.91082C17.881 5.80392 17.5166 5.72592 17.5166 5.72592L16.8916 5.64258L16.0027 5.54536L14.021 5.40824L12.5166 5.36292H11.0358L10.718 5.37659C10.2285 5.39764 9.74192 5.46367 9.26451 5.57384L8.89614 5.65885C8.68776 5.70694 8.48398 5.77314 8.28713 5.8567L8.25599 5.86991C7.95066 5.99951 7.66569 6.1726 7.40992 6.3838L7.28295 6.48865C7.12694 6.61747 6.98917 6.7669 6.8734 6.93283L6.85483 6.95946C6.75733 7.0992 6.67826 7.25093 6.61957 7.41088L6.57189 7.54084C6.47212 7.81276 6.45262 8.10762 6.5157 8.39032L6.57028 8.63494C6.57143 8.64011 6.57346 8.64505 6.57627 8.64954C6.58968 8.671 6.5836 8.69923 6.56255 8.71327L6.2088 8.9491C6.1547 8.98517 6.10425 9.02716 6.05827 9.07314C6.0099 9.12669 5.95549 9.19121 5.91938 9.25369L5.86383 9.33703C5.70751 9.60499 5.60678 9.98276 5.59161 10.2926L5.58811 10.3643C5.57943 10.5415 5.59198 10.7191 5.62549 10.8933L5.66938 11.1009C5.67496 11.1299 5.72501 11.2831 5.73883 11.3092L5.82808 11.4841C5.83549 11.4981 5.8101 11.5264 5.8101 11.5264L5.63461 11.7337C5.50159 11.8886 5.39666 12.069 5.3269 12.2609C5.27775 12.396 5.24674 12.5338 5.22494 12.6842L5.21105 12.8231L5.20421 12.9527C5.18349 13.1629 5.20208 13.3751 5.25903 13.5785C5.30702 13.7499 5.38161 13.9128 5.48007 14.061L5.80163 14.5453C5.81564 14.5628 5.81915 14.5865 5.81082 14.6073L5.69179 14.894C5.63472 15.0367 5.57755 15.3354 5.56081 15.5279L5.56926 15.7011C5.59737 15.9882 5.7594 16.318 5.92419 16.5757L6.0087 16.694C6.27636 17.0387 6.65248 17.2661 7.06116 17.4191L7.29397 17.5063C7.6076 17.6237 7.93327 17.6668 8.27207 17.7079L8.65549 17.7398C9.10991 17.7617 9.75557 17.7344 10.2055 17.6668L11.8908 17.4134C11.8986 17.4122 11.9064 17.4116 11.9143 17.4116H11.9307C12.009 17.4116 12.0724 17.4751 12.0724 17.5533C12.0724 17.5608 12.0718 17.5683 12.0706 17.5757L11.8777 18.6148L11.4592 20.2753C11.3697 20.6087 11.3111 20.9496 11.2842 21.2937L11.2419 21.8339C11.2142 22.1869 11.2539 22.5419 11.3588 22.8801L11.3855 22.9662C11.4799 23.2706 11.6351 23.5526 11.8416 23.7952L11.8884 23.8502C12.181 24.1939 12.5751 24.4361 13.014 24.5417L13.2831 24.6064C13.5562 24.6722 13.8433 24.6478 14.1014 24.5369C14.3407 24.4341 14.5436 24.2619 14.6839 24.0426L14.7006 24.0166C14.845 23.7909 14.9217 23.5286 14.9217 23.2607V22.8918C14.9217 22.546 14.989 22.2036 15.1199 21.8836L15.8331 20.1399C16.0824 19.5305 16.3803 18.9422 16.7241 18.3808L17.4221 17.2409C17.5486 17.0344 17.6987 16.8434 17.8694 16.6718L17.9144 16.6264C18.3757 16.1626 18.6683 15.5575 18.7454 14.9079Z" fill="white" stroke="white" stroke-width="1.21547"/>\n</svg>'}},favoriteButton:{svgSrc:{baseState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.49976 7.25225V23.2366C7.49976 24.6882 9.33429 25.321 10.2292 24.1782L13.7974 19.6218C14.4088 18.8411 15.5907 18.8411 16.2021 19.6218L19.7703 24.1782C20.6652 25.321 22.4998 24.6882 22.4998 23.2366V7.25225C22.4998 5.98711 21.4742 4.96152 20.209 4.96152H9.79048C8.52535 4.96152 7.49976 5.98712 7.49976 7.25225Z" stroke="white" stroke-width="1.29808"/>\n</svg>',activeState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.49976 7.04073V23.0251C7.49976 24.4767 9.33429 25.1095 10.2292 23.9667L13.7974 19.4103C14.4088 18.6296 15.5907 18.6296 16.2021 19.4103L19.7703 23.9667C20.6652 25.1095 22.4998 24.4766 22.4998 23.0251V7.04072C22.4998 5.77559 21.4742 4.75 20.209 4.75H9.79048C8.52535 4.75 7.49976 5.77559 7.49976 7.04073Z" fill="white" stroke="white" stroke-width="1.29808"/>\n</svg>'}},muteButton:{svgSrc:{baseState:'<svg width="30" height="31" viewBox="0 0 30 31" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M3.40625 13.5734V18.7664C3.40625 19.7239 4.18245 20.5001 5.13993 20.5001H8.04633C8.6342 20.5001 9.17511 20.8213 9.45654 21.3374L11.903 25.8242C12.271 26.4992 12.9783 26.9192 13.7471 26.9192C14.9072 26.9192 15.8477 25.9788 15.8477 24.8187V7.52486C15.8477 6.36469 14.9072 5.42416 13.747 5.42412C12.9783 5.42409 12.2709 5.84393 11.9028 6.51875L9.45651 11.0026C9.17509 11.5184 8.63442 11.8394 8.04683 11.8394H5.14027C4.1826 11.8394 3.40625 12.6157 3.40625 13.5734Z" fill="white"/>\n<path d="M19.8477 13.0466L26.0976 19.2966M26.0976 13.0466L19.8477 19.2966" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>',activeState:'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M3.40625 12.5733V17.7663C3.40625 18.7238 4.18245 19.5 5.13993 19.5H8.04633C8.6342 19.5 9.17511 19.8212 9.45654 20.3373L11.903 24.8241C12.271 25.4991 12.9783 25.919 13.7471 25.9191C14.9072 25.9191 15.8477 24.9787 15.8477 23.8186V6.52474C15.8477 5.36457 14.9072 4.42404 13.747 4.424C12.9783 4.42397 12.2709 4.84381 11.9028 5.51863L9.45651 10.0025C9.17509 10.5183 8.63442 10.8392 8.04683 10.8392H5.14027C4.1826 10.8392 3.40625 11.6156 3.40625 12.5733Z" fill="white"/>\n<path d="M19.8477 11.4215C20.6323 12.4661 21.0972 13.7645 21.0972 15.1715C21.0972 16.5785 20.6323 17.8769 19.8477 18.9215M22.3472 6.78613C24.6487 8.84608 26.0972 11.8396 26.0972 15.1715C26.0972 18.5034 24.6487 21.4969 22.3472 23.5569" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>'}},shareButton:{svgSrc:{baseState:'<svg width="30" height="31" viewBox="0 0 30 31" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M19.5 10.9038C20.8488 10.9038 21.9423 9.81036 21.9423 8.46151C21.9423 7.11266 20.8488 6.01921 19.5 6.01921C18.1512 6.01921 17.0577 7.11266 17.0577 8.46151C17.0577 9.81036 18.1512 10.9038 19.5 10.9038ZM19.5 12.2115C21.5711 12.2115 23.25 10.5326 23.25 8.46151C23.25 6.39045 21.5711 4.71151 19.5 4.71151C17.4289 4.71151 15.75 6.39045 15.75 8.46151C15.75 8.98692 15.8581 9.48709 16.0531 9.94101L12.288 12.4511C11.6202 11.8367 10.7288 11.4615 9.74976 11.4615C7.67869 11.4615 5.99976 13.1404 5.99976 15.2115C5.99976 17.2826 7.67869 18.9615 9.74976 18.9615C10.7325 18.9615 11.6269 18.5835 12.2956 17.9649L16.018 20.5665C15.8451 20.9977 15.75 21.4685 15.75 21.9615C15.75 24.0326 17.4289 25.7115 19.5 25.7115C21.5711 25.7115 23.25 24.0326 23.25 21.9615C23.25 19.8904 21.5711 18.2115 19.5 18.2115C18.3369 18.2115 17.2974 18.7411 16.6096 19.5722L13.0138 17.0591C13.3231 16.5138 13.4998 15.8833 13.4998 15.2115C13.4998 14.5368 13.3216 13.9037 13.0097 13.3567L16.667 10.9185C17.3545 11.7106 18.3688 12.2115 19.5 12.2115ZM12.1921 15.2115C12.1921 16.5604 11.0986 17.6538 9.74976 17.6538C8.40091 17.6538 7.30745 16.5604 7.30745 15.2115C7.30745 13.8627 8.40091 12.7692 9.74976 12.7692C11.0986 12.7692 12.1921 13.8627 12.1921 15.2115ZM21.9423 21.9615C21.9423 23.3104 20.8488 24.4038 19.5 24.4038C18.1512 24.4038 17.0577 23.3104 17.0577 21.9615C17.0577 20.6127 18.1512 19.5192 19.5 19.5192C20.8488 19.5192 21.9423 20.6127 21.9423 21.9615Z" fill="white"/>\n</svg>'}}},f={title:{content:"Favorite",font:"1.4rem/1.2 InternalPrimaryFont",color:"white",backgroundColor:"#333333"},headerTopOffset:0,bottomOffset:0,backgroundColor:"#333333"};var h,g=__webpack_require__(2743),v=__webpack_require__.n(g);!function(e){e.DEFAULT="default",e.CUSTOM_CARD="customCard"}(h||(h={}));const m={goodsWidgetRenderingType:h.DEFAULT,goodsList:{renderingType:h.DEFAULT,closeBackgroundColor:"#000000",substrateHeight:200,substrateColor:"#FFFFFF",dimColor:"rgba(0, 0, 0, 0.5)"},goodsCard:{mainTextColor:"#000000",oldPriceTextColor:"#CCCCCC",imageBackgroundColor:"transparent",imageCornerRadius:8},openGoodsWidgetHandler:e=>Promise.resolve(e),loader:{default:{color:"gray",accentColor:"transparent"}}},y={loader:{default:{color:"white",accentColor:"transparent"},custom:null},backdropColor:"#1a1a1a",backdrop:{opacity:1,background:"#1a1a1a"},game:{backdropColor:"rgb(51, 51, 51)"},forceDesktopMode:r.forceDesktopMode,forceCheckOrientation:!0};var _,b,w,S,C,k,O;!function(e){e.EVENT_UPDATED_COMMON_OPTIONS="updatedCommonOptions",e.EVENT_UPDATED_STORIES_LIST_OPTIONS="updatedStoriesListOptions",e.EVENT_UPDATED_STORY_READER_OPTIONS="updatedStoryReaderOptions",e.EVENT_UPDATED_FAVORITE_READER_OPTIONS="updatedFavoriteReaderOptions",e.EVENT_UPDATED_GAME_READER_OPTIONS="updatedGameReaderOptions",e.EVENT_UPDATED_GOODS_WIDGET_OPTIONS="updatedGoodsWidgetOptions"}(_||(_={}));class L extends t.EventEmitter{constructor(){super(),this._commonOptions=r,this._storiesListOptions=d,this._storyReaderOptions=p,this._storyFavoriteReaderOptions=f,this._goodsWidgetOptions=m,this._gameReaderOptions=y,this._mqls=new Map,this._composeOptionsOverrideByMediaQuery=this._composeOptionsOverrideByMediaQuery.bind(this)}setCommonOptions(e,t=!0){return this._commonOptions=v()(this._commonOptions,e),this.emit(_.EVENT_UPDATED_COMMON_OPTIONS,this.commonOptions),this}get commonOptions(){return this._commonOptions}setStoriesListOptions(e,t=!0){return this._storiesListOptions=v()(this._storiesListOptions,e),t&&this.emit(_.EVENT_UPDATED_STORIES_LIST_OPTIONS,this.storiesListOptions),this}get storiesListOptions(){return this._storiesListOptions}setStoryReaderOptions(e,t=!0){return this._storyReaderOptions=v()(this._storyReaderOptions,e,{arrayMerge:(e,t,r)=>t}),t&&this.emit(_.EVENT_UPDATED_STORY_READER_OPTIONS,{storyReaderOptions:this.storyReaderOptions,gameReaderOptions:this.gameReaderOptions,appearanceCommon:this.commonOptions}),this}get storyReaderOptions(){const e={closeButtonPosition:this.commonOptions.closeButtonPosition,closeButton:this.commonOptions.closeButton,loader:this.commonOptions.loader};return Object.assign(Object.assign({},e),this._storyReaderOptions)}setStoryFavoriteReaderOptions(e,t=!0){return this._storyFavoriteReaderOptions=v()(this._storyFavoriteReaderOptions,e),t&&this.emit(_.EVENT_UPDATED_FAVORITE_READER_OPTIONS,this.storyFavoriteReaderOptions),this}get storyFavoriteReaderOptions(){const e={closeButtonPosition:this.commonOptions.closeButtonPosition,closeButton:this.commonOptions.closeButton};return Object.assign(Object.assign({},e),this._storyFavoriteReaderOptions)}setGoodsWidgetOptions(e,t=!0){return this._goodsWidgetOptions=v()(this._goodsWidgetOptions,e),t&&this.emit(_.EVENT_UPDATED_GOODS_WIDGET_OPTIONS,this.goodsWidgetOptions),this}get goodsWidgetOptions(){return this._goodsWidgetOptions}setGameReaderOptions(e,t=!0){return this._gameReaderOptions=v()(this._gameReaderOptions,e),t&&this.emit(_.EVENT_UPDATED_GAME_READER_OPTIONS,this.gameReaderOptions),this}get gameReaderOptions(){const e={closeButtonPosition:this.commonOptions.closeButtonPosition,closeButton:this.commonOptions.closeButton,loader:this.commonOptions.loader,forceDesktopMode:this.commonOptions.forceDesktopMode};return Object.assign(Object.assign({},e),this._gameReaderOptions)}setOptionsOverrideByMediaQuery(e){return this.removeMediaQueryEventListeners(),this.initMediaQueries(e),this}initMediaQueries(e){for(const t of e){const e=this._composeMqlCondition(t);if(null!==e&&null!=window.matchMedia){const r=window.matchMedia(e);this._mqls.set(r,t),r.addEventListener("change",this._composeOptionsOverrideByMediaQuery)}}this._composeOptionsOverrideByMediaQuery()}_composeMqlCondition(e){let t=null;if(null!=e.viewportMinSize){if("number"==typeof e.viewportMinSize)t=`(min-width: ${e.viewportMinSize}px)`;else if("string"==typeof e.viewportMinSize)switch(e.viewportMinSize){case"sm":t="(min-width: 576px)";break;case"md":t="(min-width: 768px)";break;case"lg":t="(min-width: 992px)";break;case"xl":t="(min-width: 1200px)";break;default:t=null}null!=e.mediaQuery&&"string"==typeof e.mediaQuery&&e.mediaQuery.length>0&&(t=e.mediaQuery)}return t}_composeOptionsOverrideByMediaQuery(e){const t=new Set;for(const[e,r]of this._mqls)e.matches&&(null!=r.commonOptions&&(this.setCommonOptions(r.commonOptions,!1),t.add("commonOptions")),null!=r.storiesListOptions&&(this.setStoriesListOptions(r.storiesListOptions,!0),t.add("storiesListOptions")),null!=r.storyReaderOptions&&(this.setStoryReaderOptions(r.storyReaderOptions,!1),t.add("storyReaderOptions")),null!=r.storyFavoriteReaderOptions&&(this.setStoryFavoriteReaderOptions(r.storyFavoriteReaderOptions,!1),t.add("storyFavoriteReaderOptions")),null!=r.goodsWidgetOptions&&(this.setGoodsWidgetOptions(r.goodsWidgetOptions,!1),t.add("goodsWidgetOptions")),null!=r.gameReaderOptions&&(this.setGameReaderOptions(r.gameReaderOptions,!1),t.add("gameReaderOptions")));t.forEach((e=>{switch(e){case"commonOptions":this.setCommonOptions({});break;case"storiesListOptions":this.setStoriesListOptions({});break;case"storyReaderOptions":this.setStoryReaderOptions({});break;case"storyFavoriteReaderOptions":this.setStoryFavoriteReaderOptions({});break;case"goodsWidgetOptions":this.setGoodsWidgetOptions({});break;case"gameReaderOptions":this.setGameReaderOptions({})}}))}removeMediaQueryEventListeners(){for(const e of this._mqls.keys())e.removeEventListener("change",this._composeOptionsOverrideByMediaQuery);this._mqls.clear()}destroy(){this.removeMediaQueryEventListeners()}}!function(e){e.direct="direct",e.onboarding="onboarding",e.list="list",e.favorite="favorite"}(b||(b={})),function(e){e[e.default=0]="default",e[e.favorite=1]="favorite"}(w||(w={})),function(e){e[e.default=0]="default",e[e.onboarding=1]="onboarding",e[e.favorite=2]="favorite",e[e.direct=3]="direct"}(S||(S={})),function(e){e.list="list",e.favorite="favorite"}(C||(C={})),function(e){e.CLICK_ON_STORY="clickOnStoryLink"}(k||(k={})),function(e){e.TEXT="text",e.IMAGE="image"}(O||(O={}));var x=__webpack_require__(3128),A=__webpack_require__(1810),E=__webpack_require__(3142),M=__webpack_require__.n(E),T=__webpack_require__(1580),R=__webpack_require__.n(T);const I=(0,A.y$)({default:{},user:{}}),{sdkPlaceholdersChanged:P,addDefaultPlaceholders:F}=(0,A.xP)(I,{sdkPlaceholdersChanged:(e,t)=>({default:e.default,user:t}),addDefaultPlaceholders:(e,t)=>{let r={default:{},user:e.user};return M()(t)&&t.forEach((e=>{R()(e)&&void 0!==e.name&&void 0!==e.default_value&&(r.default[e.name]=e.default_value)})),r}});var D=__webpack_require__(3655),j=__webpack_require__.n(D),B=__webpack_require__(8138),N=__webpack_require__.n(B),U=__webpack_require__(986),W=__webpack_require__.n(U),$=__webpack_require__(6265);class G{constructor(e){this.window=e}get width(){const e=this.window.document.documentElement.clientWidth;return Math.abs(this.window.innerWidth-e)}setScrollbar(e=this.width){this._disableOverFlow(),this._setElementAttributes("body","paddingRight",(t=>t+e))}_disableOverFlow(){const e=this.window.document.body.style.overflow;e&&(this.window.document.body.dataset.overflow=e),this.window.document.body.style.overflow="hidden"}_setElementAttributes(e,t,r){const i=this.width;this.window.document.querySelectorAll(e).forEach((e=>{if(e!==this.window.document.body&&this.window.innerWidth>e.clientWidth+i)return;const o=e.style[t],n=this.window.getComputedStyle(e)[t];e.dataset[t]=o,e.style[t]=`${r(Number.parseFloat(n))}px`}))}resetScrollbar(){this._resetElementAttributes("body","overflow"),this._resetElementAttributes("body","paddingRight")}_resetElementAttributes(e,t){this.window.document.querySelectorAll(e).forEach((e=>{const r=e.dataset[t];void 0===r?e.style.removeProperty(t):(delete e.dataset[t],e.style[t]=r)}))}}var q=__webpack_require__(9782),z=__webpack_require__(5946),H=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class V extends $.A{constructor(e,t){super(e,t),this.iframe=null,this._silentClose=!1}set silentClose(e){this._silentClose=e}init(e){return H(this,void 0,void 0,(function*(){var t={},r={};t.allowTransparency=!0,t.overflowTouch=!1,t.zIndex=2147483644,t.backgroundColor="transparent";var i={startHeight:70,minWidth:150,storiesHeight:70},o=(document.querySelector("body"),document.querySelector("html"),t.zIndex||2147483645);const n=new G(window),s=this,a={event:function(e,t){s.emit(e,t)},setFixedHtmlPosition:function(){},open:function(e){e.windowReferer===w.default?n.setScrollbar():(e.windowReferer,w.favorite),s.emit("openStoryReader",e),s.iframe&&(s.iframe.style.setProperty("display","block"),s.iframe.style.setProperty("z-index",o))},close:function(e){var t;e.windowReferer===w.default?n.resetScrollbar():(e.windowReferer,w.favorite),!1===s._silentClose&&s.emit("closeStoryReader",e),s.iframe&&s.iframe.style.setProperty("display","none"),null===(t=s.browserHistory)||void 0===t||t.destroy()}};return new Promise(((o,n)=>{this._init(t,r,e,a,i,((e,t,r)=>{e,t,r}),null,null,o,n)}))}))}getWidgetDocument(e,t){var r,i;return`\n <script type="text/javascript" src="${`${q.C.baseUrl}/v2.10.4/dist/js/storyReader.js`}"><\/script>\n ${(Array.isArray(null===(r=this.options)||void 0===r?void 0:r.storyWidgetsResources)?null===(i=this.options)||void 0===i?void 0:i.storyWidgetsResources:[]).map((e=>"js"===e.type?`<script type="text/javascript" src="${e.src}" data-hid="${(0,z.F)(e.src)}"><\/script>`:"")).join("")}\n\n <div id="app"><div id="_app"></div></div>\n <script type="text/javascript" nonce="${t}">\n window.storyReader.init(${JSON.stringify(e)});\n <\/script>\n`}_init(e,t,r,i,o,n,s,a,l,d){const c=Object.create(null,{__init:{get:()=>super.__init}});return H(this,void 0,void 0,(function*(){return o.fullScreen=!0,o.scrolling=!1,o.hidden=!0,n=(e,t,r)=>{this.rpc=r,this.iframe=t},c.__init.call(this,e,t,r,i,o,n,s,a,l,d)}))}rpcCb(e,t){var r;null===(r=this.rpc)||void 0===r||r.callMethod(e,t)}sessionInit(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onSessionInit",e)}openReader(e,t){var r;this.options=Object.assign(Object.assign({},this.options),{sourceInfo:t}),null===(r=this.rpc)||void 0===r||r.callMethod("onOpenReader",e)}closeReader(){var e;null===(e=this.rpc)||void 0===e||e.callMethod("onCloseReader")}closeGoodsWidget(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onCloseGoodsWidget",e)}syncStoreHandle(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onSyncStore",e)}setStories(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setStories",e)}setStoriesAndContext(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onSetStoriesAndContext",e)}setFonts(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setFonts",e)}_destroyClientWidget(){this.rpc.callMethod("destroyWidget")}setOptions(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setOptions",e)}pauseAndBlockViewerUI(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("pauseAndBlockViewerUI",e)}resumeAndEnableViewerUI(){var e;null===(e=this.rpc)||void 0===e||e.callMethod("resumeAndEnableViewerUI")}setStoryWidgetsResources(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setStoryWidgetsResources",e)}}var Y=__webpack_require__(1085),K=__webpack_require__(9155);var Q=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),X=Math.abs,J=String.fromCharCode,Z=Object.assign;function ee(e){return e.trim()}function te(e,t,r){return e.replace(t,r)}function re(e,t){return e.indexOf(t)}function ie(e,t){return 0|e.charCodeAt(t)}function oe(e,t,r){return e.slice(t,r)}function ne(e){return e.length}function se(e){return e.length}function ae(e,t){return t.push(e),e}var le=1,de=1,ce=0,ue=0,pe=0,fe="";function he(e,t,r,i,o,n,s){return{value:e,root:t,parent:r,type:i,props:o,children:n,line:le,column:de,length:s,return:""}}function ge(e,t){return Z(he("",null,null,"",null,null,0),e,{length:-e.length},t)}function ve(){return pe=ue>0?ie(fe,--ue):0,de--,10===pe&&(de=1,le--),pe}function me(){return pe=ue<ce?ie(fe,ue++):0,de++,10===pe&&(de=1,le++),pe}function ye(){return ie(fe,ue)}function _e(){return ue}function be(e,t){return oe(fe,e,t)}function we(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Se(e){return le=de=1,ce=ne(fe=e),ue=0,[]}function Ce(e){return fe="",e}function ke(e){return ee(be(ue-1,xe(91===e?e+2:40===e?e+1:e)))}function Oe(e){for(;(pe=ye())&&pe<33;)me();return we(e)>2||we(pe)>3?"":" "}function Le(e,t){for(;--t&&me()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return be(e,_e()+(t<6&&32==ye()&&32==me()))}function xe(e){for(;me();)switch(pe){case e:return ue;case 34:case 39:34!==e&&39!==e&&xe(pe);break;case 40:41===e&&xe(e);break;case 92:me()}return ue}function Ae(e,t){for(;me()&&e+pe!==57&&(e+pe!==84||47!==ye()););return"/*"+be(t,ue-1)+"*"+J(47===e?e:me())}function Ee(e){for(;!we(ye());)me();return be(e,ue)}var Me="-ms-",Te="-moz-",Re="-webkit-",Ie="comm",Pe="rule",Fe="decl",De="@keyframes";function je(e,t){for(var r="",i=se(e),o=0;o<i;o++)r+=t(e[o],o,e,t)||"";return r}function Be(e,t,r,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Fe:return e.return=e.return||e.value;case Ie:return"";case De:return e.return=e.value+"{"+je(e.children,i)+"}";case Pe:e.value=e.props.join(",")}return ne(r=je(e.children,i))?e.return=e.value+"{"+r+"}":""}function Ne(e){return Ce(Ue("",null,null,null,[""],e=Se(e),0,[0],e))}function Ue(e,t,r,i,o,n,s,a,l){for(var d=0,c=0,u=s,p=0,f=0,h=0,g=1,v=1,m=1,y=0,_="",b=o,w=n,S=i,C=_;v;)switch(h=y,y=me()){case 40:if(108!=h&&58==ie(C,u-1)){-1!=re(C+=te(ke(y),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:C+=ke(y);break;case 9:case 10:case 13:case 32:C+=Oe(h);break;case 92:C+=Le(_e()-1,7);continue;case 47:switch(ye()){case 42:case 47:ae($e(Ae(me(),_e()),t,r),l);break;default:C+="/"}break;case 123*g:a[d++]=ne(C)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==m&&(C=te(C,/\f/g,"")),f>0&&ne(C)-u&&ae(f>32?Ge(C+";",i,r,u-1):Ge(te(C," ","")+";",i,r,u-2),l);break;case 59:C+=";";default:if(ae(S=We(C,t,r,d,c,o,a,_,b=[],w=[],u),n),123===y)if(0===c)Ue(C,t,S,S,b,n,u,a,w);else switch(99===p&&110===ie(C,3)?100:p){case 100:case 108:case 109:case 115:Ue(e,S,S,i&&ae(We(e,S,S,0,0,o,a,_,o,b=[],u),w),o,w,u,a,i?b:w);break;default:Ue(C,S,S,S,[""],w,0,a,w)}}d=c=f=0,g=m=1,_=C="",u=s;break;case 58:u=1+ne(C),f=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==ve())continue;switch(C+=J(y),y*g){case 38:m=c>0?1:(C+="\f",-1);break;case 44:a[d++]=(ne(C)-1)*m,m=1;break;case 64:45===ye()&&(C+=ke(me())),p=ye(),c=u=ne(_=C+=Ee(_e())),y++;break;case 45:45===h&&2==ne(C)&&(g=0)}}return n}function We(e,t,r,i,o,n,s,a,l,d,c){for(var u=o-1,p=0===o?n:[""],f=se(p),h=0,g=0,v=0;h<i;++h)for(var m=0,y=oe(e,u+1,u=X(g=s[h])),_=e;m<f;++m)(_=ee(g>0?p[m]+" "+y:te(y,/&\f/g,p[m])))&&(l[v++]=_);return he(e,t,r,0===o?Pe:a,l,d,c)}function $e(e,t,r){return he(e,t,r,Ie,J(pe),oe(e,2,-2),0)}function Ge(e,t,r,i){return he(e,t,r,Fe,oe(e,0,i),oe(e,i+1,-1),i)}var qe=function(e,t,r){for(var i=0,o=0;i=o,o=ye(),38===i&&12===o&&(t[r]=1),!we(o);)me();return be(e,ue)},ze=function(e,t){return Ce(function(e,t){var r=-1,i=44;do{switch(we(i)){case 0:38===i&&12===ye()&&(t[r]=1),e[r]+=qe(ue-1,t,r);break;case 2:e[r]+=ke(i);break;case 4:if(44===i){e[++r]=58===ye()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=J(i)}}while(i=me());return e}(Se(e),t))},He=new WeakMap,Ve=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||He.get(r))&&!i){He.set(e,!0);for(var o=[],n=ze(t,o),s=r.props,a=0,l=0;a<n.length;a++)for(var d=0;d<s.length;d++,l++)e.props[l]=o[a]?n[a].replace(/&\f/g,s[d]):s[d]+" "+n[a]}}},Ye=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ke(e,t){switch(function(e,t){return 45^ie(e,0)?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}(e,t)){case 5103:return Re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Re+e+Te+e+Me+e+e;case 6828:case 4268:return Re+e+Me+e+e;case 6165:return Re+e+Me+"flex-"+e+e;case 5187:return Re+e+te(e,/(\w+).+(:[^]+)/,Re+"box-$1$2"+Me+"flex-$1$2")+e;case 5443:return Re+e+Me+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return Re+e+Me+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return Re+e+Me+te(e,"shrink","negative")+e;case 5292:return Re+e+Me+te(e,"basis","preferred-size")+e;case 6060:return Re+"box-"+te(e,"-grow","")+Re+e+Me+te(e,"grow","positive")+e;case 4554:return Re+te(e,/([^-])(transform)/g,"$1"+Re+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,Re+"$1"),/(image-set)/,Re+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,Re+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,Re+"box-pack:$3"+Me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Re+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,Re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ne(e)-1-t>6)switch(ie(e,t+1)){case 109:if(45!==ie(e,t+4))break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+Te+(108==ie(e,t+3)?"$3":"$2-$3"))+e;case 115:return~re(e,"stretch")?Ke(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ie(e,t+1))break;case 6444:switch(ie(e,ne(e)-3-(~re(e,"!important")&&10))){case 107:return te(e,":",":"+Re)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Re+(45===ie(e,14)?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Me+"$2box$3")+e}break;case 5936:switch(ie(e,t+11)){case 114:return Re+e+Me+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Me+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Me+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Re+e+Me+e+e}return e}var Qe=[function(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case Fe:e.return=Ke(e.value,e.length);break;case De:return je([ge(e,{value:te(e.value,"@","@"+Re)})],i);case Pe:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return je([ge(e,{props:[te(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return je([ge(e,{props:[te(t,/:(plac\w+)/,":"+Re+"input-$1")]}),ge(e,{props:[te(t,/:(plac\w+)/,":-moz-$1")]}),ge(e,{props:[te(t,/:(plac\w+)/,Me+"input-$1")]})],i)}return""}))}}],Xe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||Qe;var o,n,s={},a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;a.push(e)}));var l,d,c,u,p=[Be,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=(d=[Ve,Ye].concat(i,p),c=se(d),function(e,t,r,i){for(var o="",n=0;n<c;n++)o+=d[n](e,t,r,i)||"";return o});n=function(e,t,r,i){l=r,je(Ne(e?e+"{"+t.styles+"}":t.styles),f),i&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Q({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:n};return h.sheet.hydrate(a),h};function Je(e,t,r){var i="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):i+=r+" "})),i}var Ze=function(e,t,r){var i=e.key+"-"+t.name;!1===r&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},et=function(e,t,r){Ze(e,t,r);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+i:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var tt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function rt(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var it=/[A-Z]|^ms/g,ot=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nt=function(e){return 45===e.charCodeAt(1)},st=function(e){return null!=e&&"boolean"!=typeof e},at=rt((function(e){return nt(e)?e:e.replace(it,"-$&").toLowerCase()})),lt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ot,(function(e,t,r){return ct={name:t,styles:r,next:ct},t}))}return 1===tt[e]||nt(e)||"number"!=typeof t||0===t?t:t+"px"};function dt(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return ct={name:r.name,styles:r.styles,next:ct},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)ct={name:i.name,styles:i.styles,next:ct},i=i.next;return r.styles+";"}return function(e,t,r){var i="";if(Array.isArray(r))for(var o=0;o<r.length;o++)i+=dt(e,t,r[o])+";";else for(var n in r){var s=r[n];if("object"!=typeof s)null!=t&&void 0!==t[s]?i+=n+"{"+t[s]+"}":st(s)&&(i+=at(n)+":"+lt(n,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=dt(e,t,s);switch(n){case"animation":case"animationName":i+=at(n)+":"+a+";";break;default:i+=n+"{"+a+"}"}}else for(var l=0;l<s.length;l++)st(s[l])&&(i+=at(n)+":"+lt(n,s[l])+";")}return i}(e,t,r);case"function":if(void 0!==e){var o=ct,n=r(e);return ct=o,dt(e,t,n)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var ct,ut=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var pt=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";ct=void 0;var n=e[0];null==n||void 0===n.raw?(i=!1,o+=dt(r,t,n)):o+=n[0];for(var s=1;s<e.length;s++)o+=dt(r,t,e[s]),i&&(o+=n[s]);ut.lastIndex=0;for(var a,l="";null!==(a=ut.exec(o));)l+="-"+a[1];var d=function(e){for(var t,r=0,i=0,o=e.length;o>=4;++i,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:d,styles:o,next:ct}},ft=!!K.useInsertionEffect&&K.useInsertionEffect,ht=ft||function(e){return e()},gt=(ft||K.useLayoutEffect,{}.hasOwnProperty),vt=K.createContext("undefined"!=typeof HTMLElement?Xe({key:"css"}):null);var mt=vt.Provider,yt=function(e){return(0,K.forwardRef)((function(t,r){var i=(0,K.useContext)(vt);return e(t,i,r)}))};var _t=K.createContext({});var bt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wt=function(e,t){var r={};for(var i in t)gt.call(t,i)&&(r[i]=t[i]);return r[bt]=e,r},St=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return Ze(t,r,i),ht((function(){return et(t,r,i)})),null};var Ct=yt((function(e,t,r){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[bt],n=[i],s="";"string"==typeof e.className?s=Je(t.registered,n,e.className):null!=e.className&&(s=e.className+" ");var a=pt(n,void 0,K.useContext(_t));s+=t.key+"-"+a.name;var l={};for(var d in e)gt.call(e,d)&&"css"!==d&&d!==bt&&(l[d]=e[d]);return l.ref=r,l.className=s,K.createElement(K.Fragment,null,K.createElement(St,{cache:t,serialized:a,isStringTag:"string"==typeof o}),K.createElement(o,l))})),kt=(__webpack_require__(5985),Y.Fragment);function Ot(e,t,r){return gt.call(t,"css")?Y.jsx(Ct,wt(e,t),r):Y.jsx(e,t,r)}function Lt(e,t,r){return gt.call(t,"css")?Y.jsxs(Ct,wt(e,t),r):Y.jsxs(e,t,r)}var xt=__webpack_require__(9514),At=__webpack_require__.n(xt),Et=__webpack_require__(7791);!function(){const e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;window.requestAnimationFrame=e}();const Mt=function(){let e,t=document.createElement("div"),r={transition:"transitionend",OTransition:"otransitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in r)if(r.hasOwnProperty(e)&&void 0!==t.style[e])return r[e]}();function Tt(e,t,r){return new Promise((i=>{let o=!1;const n=()=>{o=!0,clearTimeout(a),void 0!==Mt&&e.removeEventListener(Mt,s),e.style.setProperty("transition",`${t} 0ms`),i()},s=e=>{e.propertyName===t&&(o||n())};void 0!==Mt&&e.addEventListener(Mt,s,!1);const a=setTimeout((()=>{o||n()}),r+20);e.style.setProperty("transition",`${t} ${r}ms`)}))}function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Rt.apply(this,arguments)}var It=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Pt=rt((function(e){return It.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ft=function(e){return"theme"!==e},Dt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Pt:Ft},jt=function(e,t,r){var i;if(t){var o=t.shouldForwardProp;i=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof i&&r&&(i=e.__emotion_forwardProp),i},Bt=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return Ze(t,r,i),ht((function(){return et(t,r,i)})),null},Nt=function e(t,r){var i,o,n=t.__emotion_real===t,s=n&&t.__emotion_base||t;void 0!==r&&(i=r.label,o=r.target);var a=jt(t,r,n),l=a||Dt(s),d=!l("as");return function(){var c=arguments,u=n&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&u.push("label:"+i+";"),null==c[0]||void 0===c[0].raw)u.push.apply(u,c);else{0,u.push(c[0][0]);for(var p=c.length,f=1;f<p;f++)u.push(c[f],c[0][f])}var h=yt((function(e,t,r){var i=d&&e.as||s,n="",c=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=K.useContext(_t)}"string"==typeof e.className?n=Je(t.registered,c,e.className):null!=e.className&&(n=e.className+" ");var h=pt(u.concat(c),t.registered,p);n+=t.key+"-"+h.name,void 0!==o&&(n+=" "+o);var g=d&&void 0===a?Dt(i):l,v={};for(var m in e)d&&"as"===m||g(m)&&(v[m]=e[m]);return v.className=n,v.ref=r,K.createElement(K.Fragment,null,K.createElement(Bt,{cache:t,serialized:h,isStringTag:"string"==typeof i}),K.createElement(i,v))}));return h.displayName=void 0!==i?i:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=u,h.__emotion_forwardProp=a,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,i){return e(t,Rt({},r,i,{shouldForwardProp:jt(h,i,!0)})).apply(void 0,u)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Nt[e]=Nt(e)}));function Ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pt(t)}var Wt=function(){var e=Ut.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};var $t=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Gt=e=>{const t=(0,K.useRef)(null),r=(0,K.useRef)(null);let i,o=(0,K.useRef)(0),n=(0,K.useRef)(0);const s=()=>{r.current&&(n.current=-1*(0,Et.j9)(r.current).x)},[a,l]=(0,K.useState)(!1),[d,c]=(0,K.useState)(!1),u=(0,K.useRef)(!1),p=()=>{const t=K.Children.count(e.children);return r.current&&t?r.current.scrollWidth/t:0};let f=!1;(0,K.useEffect)((()=>{var e;return("ontouchstart"in window||window.navigator.msPointerEnabled||"ontouchstart"in document.documentElement)&&(f=!0),f||(r.current&&(i=null===(e=r.current.children[0])||void 0===e?void 0:e.offsetWidth),r.current&&(o.current=r.current.scrollWidth-r.current.clientWidth,s()),o.current===n.current?c(!1):c(!0),0===n.current?l(!1):l(!0)),()=>{}}),[]);let h=(0,K.useRef)(!1),g=(0,K.useRef)(0),v=0;const m=(0,K.useRef)(!1),[y,_]=(0,K.useState)(0),b=e=>{e<0&&(e=0),e>o.current&&(e=o.current),_(e)};(0,K.useEffect)((()=>{y===o.current?c(!1):c(!0),l(0!==y)}),[y]);const w=e=>{if(!u.current)if(h.current){const t=e instanceof MouseEvent?e.pageX:e.touches&&e.touches[0].pageX;if(t!==g.current){m.current=!0,v=t;const e=g.current-v;let r=n.current+e;b(r)}}else m.current=!1},S=e=>{m.current&&e.preventDefault(),setTimeout((()=>{m.current=!1})),h.current=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",S),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",S)};return Lt(qt,{cssStyle:e.style,children:[Ot(zt,{ref:t,onMouseDown:e=>{u.current||(e.preventDefault(),h.current=!0,g.current=e.pageX,r.current&&(o.current=r.current.scrollWidth-r.current.clientWidth),r.current&&s(),document.addEventListener("mousemove",w),document.addEventListener("mouseup",S))},onTouchStart:e=>{u.current||(e.preventDefault(),h.current=!0,g.current=e.touches&&e.touches[0].pageX,r.current&&(o.current=r.current.scrollWidth-r.current.clientWidth),r.current&&s(),document.addEventListener("touchmove",w),document.addEventListener("touchend",S))},onClickCapture:e=>{m.current&&(e.preventDefault(),e.stopPropagation())},children:Ot(Ht,{ref:r,style:{transform:`translateX(${-1*y}px)`},children:e.children})}),!f&&Lt(kt,{children:[Ot(Yt,{position:Vt.LEFT,show:a,onClick:e=>$t(void 0,void 0,void 0,(function*(){if(u.current)return;s();let e=n.current-p();b(e),u.current=!0,r.current&&(yield Tt(r.current,"transform",300)),u.current=!1})),children:Ot("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Ot("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})}),Ot(Yt,{position:Vt.RIGHT,show:d,onClick:e=>$t(void 0,void 0,void 0,(function*(){if(u.current)return;s();let e=n.current+p();b(e),u.current=!0,r.current&&(yield Tt(r.current,"transform",300)),u.current=!1})),children:Ot("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Ot("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})})})]})]})},qt=Nt("div")({position:"relative"},(e=>Object.assign({},e.cssStyle))),zt=Nt.div`
36
28
  position: relative;
37
29
  overflow: hidden;
38
- `,Vt=Ut.div`
30
+ `,Ht=Nt.div`
39
31
  display: flex;
40
32
  flex-wrap: nowrap;
41
33
  cursor: pointer;
42
- `;var Yt;!function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(Yt||(Yt={}));const Kt=Ut.span`
34
+ `;var Vt;!function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(Vt||(Vt={}));const Yt=Nt.span`
43
35
  width: 36px;
44
36
  height: 36px;
45
37
  color: #757575;
@@ -78,7 +70,7 @@ object-assign
78
70
  display: none !important;
79
71
  }
80
72
 
81
- ${e=>{if(e.show)return Wt`
73
+ ${e=>{if(e.show)return Ut`
82
74
  opacity: .9;
83
75
 
84
76
  &:hover {
@@ -86,10 +78,10 @@ object-assign
86
78
  }
87
79
  `}};
88
80
 
89
- ${e=>e.position===Yt.RIGHT?Wt`right: -18px`:e.position===Yt.LEFT?Wt`left: -18px`:void 0};
81
+ ${e=>e.position===Vt.RIGHT?Ut`right: -18px`:e.position===Vt.LEFT?Ut`left: -18px`:void 0};
90
82
 
91
83
 
92
- `,Qt=Ut("div")({},(e=>Object.assign({color:e.color,font:e.font},e.cssStyle))),Xt=({goods:e,onClick:t,options:r})=>{const{imgSrc:i,title:n,subTitle:o,price:s,oldPrice:a,sku:l}=e;return Lt(Jt,{color:r.mainTextColor,onClick:()=>t(e),children:[Ot(tr,{borderRadius:r.imageCornerRadius,backgroundColor:r.imageBackgroundColor,children:i&&Ot("img",{src:i,alt:n})}),Ot(er,{font:r.subtitleFont,children:o}),Ot(er,{font:r.titleFont,children:n}),Lt(Zt,{children:[Ot(er,{font:r.priceFont,children:s}),Ot(er,{isOldPrice:!0,font:r.oldPriceFont,color:r.oldPriceTextColor,children:a})]})]})},Jt=Ut.div`
84
+ `,Kt=Nt("div")({},(e=>Object.assign({color:e.color,font:e.font},e.cssStyle))),Qt=({goods:e,onClick:t,options:r})=>{const{imgSrc:i,title:o,subTitle:n,price:s,oldPrice:a,sku:l}=e;return Lt(Xt,{color:r.mainTextColor,onClick:()=>t(e),children:[Ot(er,{borderRadius:r.imageCornerRadius,backgroundColor:r.imageBackgroundColor,children:i&&Ot("img",{src:i,alt:o})}),Ot(Zt,{font:r.subtitleFont,children:n}),Ot(Zt,{font:r.titleFont,children:o}),Lt(Jt,{children:[Ot(Zt,{font:r.priceFont,children:s}),Ot(Zt,{isOldPrice:!0,font:r.oldPriceFont,color:r.oldPriceTextColor,children:a})]})]})},Xt=Nt.div`
93
85
  width: 100px;
94
86
 
95
87
  &:first-child {
@@ -101,17 +93,17 @@ object-assign
101
93
  }
102
94
 
103
95
  color: ${e=>e.color};
104
- `,Zt=Ut.div`
96
+ `,Jt=Nt.div`
105
97
  display: flex;
106
98
 
107
99
  & > div:not(:last-child) {
108
100
  margin-right: 0.5rem;
109
101
  }
110
- `,er=Ut((({children:e,style:t,color:r,font:i,className:n})=>Ot(Qt,{className:n,color:r,font:i,cssStyle:t,children:e})))`
111
- ${e=>{if(e.isOldPrice)return Wt`
102
+ `,Zt=Nt((({children:e,style:t,color:r,font:i,className:o})=>Ot(Kt,{className:o,color:r,font:i,cssStyle:t,children:e})))`
103
+ ${e=>{if(e.isOldPrice)return Ut`
112
104
  text-decoration: line-through;
113
105
  `}}
114
- `,tr=Ut.figure`
106
+ `,er=Nt.figure`
115
107
  margin: 0;
116
108
  margin-bottom: 0.5rem;
117
109
 
@@ -131,11 +123,11 @@ object-assign
131
123
  }
132
124
 
133
125
 
134
- `,rr=e=>{const t=e.appearanceManager.goodsWidgetOptions,r=t.goodsWidgetRenderingType||t.goodsList.renderingType;let i=[];return r===h.DEFAULT?i=e.goodsList.map(((r,i)=>Ot(Xt,{options:t.goodsCard,goods:r,onClick:e.onGoodsCardClick},i))):r===h.CUSTOM_CARD&&D()(t.getCardHtml)&&(i=e.goodsList.map(((r,i)=>{var n,o;return Ot(Jt,{dangerouslySetInnerHTML:{__html:null!==(o=null===(n=t.getCardHtml)||void 0===n?void 0:n.call(t,r,i))&&void 0!==o?o:""},onClick:()=>e.onGoodsCardClick(r)},i)}))),Ot(qt,{style:{marginTop:"-15px"},children:i})};var ir=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r};const nr=e=>{var{arrowColor:t}=e,r=ir(e,["arrowColor"]);return Ot("svg",Object.assign({},r,{width:"32",height:"12.5",viewBox:"0 0 64 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ot("path",{d:"M56.293 1.23375C58.054 -0.41125 60.846 -0.41125 62.607 1.23375C64.464 2.96775 64.464 5.85675 62.607 7.59075L35.157 23.2288C33.396 24.8738 30.604 24.8738 28.843 23.2288L1.393 7.59075C0.494002 6.75175 0 5.62775 0 4.41275C0 3.19775 0.494002 2.07375 1.393 1.23475C3.154 -0.410251 5.946 -0.410251 7.707 1.23475L32 13.9237L56.293 1.23375Z",fill:t})}))},or=({closeImage:e,arrowColor:t,onClick:r})=>Ot(sr,{onClick:r,children:e?Ot("div",{dangerouslySetInnerHTML:{__html:e}}):Ot(nr,{arrowColor:t})}),sr=Ut.div`
126
+ `,tr=e=>{const t=e.appearanceManager.goodsWidgetOptions,r=t.goodsWidgetRenderingType||t.goodsList.renderingType;let i=[];return r===h.DEFAULT?i=e.goodsList.map(((r,i)=>Ot(Qt,{options:t.goodsCard,goods:r,onClick:e.onGoodsCardClick},i))):r===h.CUSTOM_CARD&&j()(t.getCardHtml)&&(i=e.goodsList.map(((r,i)=>{var o,n;return Ot(Xt,{dangerouslySetInnerHTML:{__html:null!==(n=null===(o=t.getCardHtml)||void 0===o?void 0:o.call(t,r,i))&&void 0!==n?n:""},onClick:()=>e.onGoodsCardClick(r)},i)}))),Ot(Gt,{style:{marginTop:"-15px"},children:i})};var rr=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};const ir=e=>{var{arrowColor:t}=e,r=rr(e,["arrowColor"]);return Ot("svg",Object.assign({},r,{width:"32",height:"12.5",viewBox:"0 0 64 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ot("path",{d:"M56.293 1.23375C58.054 -0.41125 60.846 -0.41125 62.607 1.23375C64.464 2.96775 64.464 5.85675 62.607 7.59075L35.157 23.2288C33.396 24.8738 30.604 24.8738 28.843 23.2288L1.393 7.59075C0.494002 6.75175 0 5.62775 0 4.41275C0 3.19775 0.494002 2.07375 1.393 1.23475C3.154 -0.410251 5.946 -0.410251 7.707 1.23475L32 13.9237L56.293 1.23375Z",fill:t})}))},or=({closeImage:e,arrowColor:t,onClick:r})=>Ot(nr,{onClick:r,children:e?Ot("div",{dangerouslySetInnerHTML:{__html:e}}):Ot(ir,{arrowColor:t})}),nr=Nt.div`
135
127
  margin: auto auto 10px;
136
128
  padding: 10px;
137
129
  cursor: pointer;
138
- `,ar=({isLoading:e,backgroundColor:t="white",accentBackgroundColor:r="transparent"})=>e?Ot(dr,{border:`solid 2px ${t}`,borderColor:`${r} ${t} ${t} ${t}`}):null,lr=$t`
130
+ `,sr=({isLoading:e,backgroundColor:t="white",accentBackgroundColor:r="transparent"})=>e?Ot(lr,{border:`solid 2px ${t}`,borderColor:`${r} ${t} ${t} ${t}`}):null,ar=Wt`
139
131
  from {
140
132
  -webkit-transform: rotate(0deg);
141
133
  transform: rotate(0deg);
@@ -144,7 +136,7 @@ object-assign
144
136
  -webkit-transform: rotate(359deg);
145
137
  transform: rotate(359deg);
146
138
  }
147
- `,dr=Ut.div`
139
+ `,lr=Nt.div`
148
140
  position: absolute;
149
141
  top: calc(50% - 2rem / 2);
150
142
  left: calc(50% - 2rem / 2);
@@ -152,11 +144,11 @@ object-assign
152
144
  width: 2rem;
153
145
  height: 2rem;
154
146
  border-radius: 50%;
155
- animation: ${lr} .6s infinite linear;
147
+ animation: ${ar} .6s infinite linear;
156
148
 
157
149
  border: ${e=>e.border};
158
150
  border-color: ${e=>e.borderColor};
159
- `;var cr;!function(e){e[e.IN=0]="IN",e[e.OUT=1]="OUT"}(cr||(cr={}));const ur=({widgetInitData:e,appearanceManager:t,onClose:r,goodsList:i})=>{const n=(0,K.useRef)(null),o=t.goodsWidgetOptions,{dimColor:s,substrateHeight:a,substrateColor:l,closeImage:d,closeBackgroundColor:c}=o.goodsList,[u,p]=(0,K.useState)(cr.IN),f=()=>{h(r)},h=e=>{var t;p(cr.OUT),null===(t=n.current)||void 0===t||t.addEventListener("animationend",e)},g=o.loader.custom?Ot("div",{dangerouslySetInnerHTML:{__html:o.loader.custom}}):Ot(ar,{isLoading:!i,backgroundColor:o.loader.default.color,accentBackgroundColor:o.loader.default.accentColor});return Lt(gr,{ref:n,fade:u,width:e.width,height:e.height,marginTop:e.verticalMargin,children:[Ot(vr,{backgroundColor:s,onClick:f}),Lt(mr,{height:a,backgroundColor:l,children:[g,i&&Ot(rr,{goodsList:i,onGoodsCardClick:e=>{var t;null===(t=o.itemClickHandler)||void 0===t||t.call(o,e)},appearanceManager:t}),Ot(or,{onClick:f,closeImage:d,arrowColor:c})]})]})},pr=$t`
151
+ `;var dr;!function(e){e[e.IN=0]="IN",e[e.OUT=1]="OUT"}(dr||(dr={}));const cr=({widgetInitData:e,appearanceManager:t,onClose:r,goodsList:i})=>{const o=(0,K.useRef)(null),n=t.goodsWidgetOptions,{dimColor:s,substrateHeight:a,substrateColor:l,closeImage:d,closeBackgroundColor:c}=n.goodsList,[u,p]=(0,K.useState)(dr.IN),f=()=>{h(r)},h=e=>{var t;p(dr.OUT),null===(t=o.current)||void 0===t||t.addEventListener("animationend",e)},g=n.loader.custom?Ot("div",{dangerouslySetInnerHTML:{__html:n.loader.custom}}):Ot(sr,{isLoading:!i,backgroundColor:n.loader.default.color,accentBackgroundColor:n.loader.default.accentColor});return Lt(hr,{ref:o,fade:u,width:e.width,height:e.height,marginTop:e.verticalMargin,children:[Ot(gr,{backgroundColor:s,onClick:f}),Lt(vr,{height:a,backgroundColor:l,children:[g,i&&Ot(tr,{goodsList:i,onGoodsCardClick:e=>{var t;null===(t=n.itemClickHandler)||void 0===t||t.call(n,e)},appearanceManager:t}),Ot(or,{onClick:f,closeImage:d,arrowColor:c})]})]})},ur=Wt`
160
152
  from {
161
153
  opacity: 0;
162
154
  }
@@ -164,7 +156,7 @@ object-assign
164
156
  to {
165
157
  opacity: 1;
166
158
  }
167
- `,fr=$t`
159
+ `,pr=Wt`
168
160
  from {
169
161
  opacity: 1;
170
162
  }
@@ -172,7 +164,7 @@ object-assign
172
164
  to {
173
165
  opacity: 0;
174
166
  }
175
- `,hr="300ms",gr=Ut.div`
167
+ `,fr="300ms",hr=Nt.div`
176
168
  position: relative;
177
169
  margin-left: auto;
178
170
  margin-right: auto;
@@ -183,15 +175,15 @@ object-assign
183
175
  height: ${e=>e.height}px;
184
176
  margin-top: ${e=>e.marginTop}px;
185
177
 
186
- animation: ${e=>e.fade===cr.IN?Wt`${hr} ${pr}`:Wt`${hr} normal forwards ${fr}`};
187
- `,vr=Ut.div`
178
+ animation: ${e=>e.fade===dr.IN?Ut`${fr} ${ur}`:Ut`${fr} normal forwards ${pr}`};
179
+ `,gr=Nt.div`
188
180
  flex: 1;
189
181
  background-color: ${e=>e.backgroundColor};
190
- `,mr=Ut.div`
182
+ `,vr=Nt.div`
191
183
  position: relative;
192
184
  display: flex;
193
185
  flex-direction: column;
194
186
 
195
187
  height: ${e=>e.height}px;
196
188
  background-color: ${e=>e.backgroundColor?e.backgroundColor:"white"};
197
- `;let yr=null;class _r extends t.EventEmitter{constructor(e,t,r,i){if(super(),this.appearanceManager=t,this.storyReaderInstance=r,this.widgetInitData=i,!r.iframe)return;const n=this.getGoods();this.mount(),this.render(),n.then((e=>this.render(e))).catch(console.error)}close(){var e;this.root&&(null===(e=this.root.parentNode)||void 0===e||e.removeChild(this.root),At().unmountComponentAtNode(this.root),this.emit("close",{elementId:this.widgetInitData.elementId}))}getGoods(){return(0,this.appearanceManager.goodsWidgetOptions.openGoodsWidgetHandler)(this.getEmptyGoods())}getEmptyGoods(){try{return JSON.parse(this.widgetInitData.url).map((e=>({sku:e,title:"",subTitle:"",price:"",oldPrice:"",rawData:{}})))}catch(e){return console.error(e),[]}}mount(){var e,t;this.root=document.createElement("div"),this.root.style.setProperty("position","fixed"),this.root.style.setProperty("top","0"),this.root.style.setProperty("left","0"),this.root.style.setProperty("right","0"),this.root.style.setProperty("bottom","0"),this.root.style.setProperty("z-index","2147483646"),null===(t=null===(e=this.storyReaderInstance.iframe)||void 0===e?void 0:e.parentNode)||void 0===t||t.insertBefore(this.root,this.storyReaderInstance.iframe.nextSibling)}render(e){this.root&&At().render(Ot(mt,{value:(null==yr&&(yr=Xe({key:"ias-widget-goods",nonce:x.Tl.getState().nonce})),yr),children:Ot(ur,{goodsList:e,widgetInitData:this.widgetInitData,appearanceManager:this.appearanceManager,onClose:()=>{this.close()}})}),this.root)}}var br=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class wr extends $.A{constructor(e,t){super(e,t)}init(e){return br(this,void 0,void 0,(function*(){var t={},r={extraCss:e.options.extraCss||null,extraJs:null};t.allowTransparency=!0,t.overflowTouch=!1,t.backgroundColor="transparent";var i={startHeight:70,minWidth:150,storiesHeight:70},n=(document.querySelector("body"),document.querySelector("html"),t.zIndex||2147483644);const o=new G(window),s=this,a={event:function(e,t){s.emit(e,t)},setFixedHtmlPosition:function(){},open:function(){var e;o.setScrollbar(),s.iframe&&(s.iframe.style.setProperty("display","block"),s.iframe.style.setProperty("z-index",n)),null===(e=s.rpc)||void 0===e||e.callMethod("onReaderOpened")},close:function(){o.resetScrollbar(),s.iframe&&s.iframe.style.setProperty("display","none"),s.emit("closeReader")}};return new Promise(((n,o)=>{this._init(t,r,e,a,i,(function(e,t,r){e,t,r}),null,null,n,o)}))}))}getWidgetDocument(e,t){return`\n\n <script type="text/javascript" src="${`${q.C.baseUrl}/v2.10.4/dist/js/storyFavoriteReader.js`}"><\/script>\n <div id="app"><div id="_app"></div></div>\n <script type="text/javascript" nonce="${t}">\n window.storyFavoriteReader.init(${JSON.stringify(e)});\n <\/script>\n`}_init(e,t,r,i,n,o,s,a,l,d){const c=Object.create(null,{__init:{get:()=>super.__init}});return br(this,void 0,void 0,(function*(){return n.fullScreen=!0,n.scrolling=!0,n.hidden=!0,o=(e,t,r)=>{this.rpc=r,this.iframe=t},yield c.__init.call(this,e,t,r,i,n,o,s,a,l,d)}))}sessionInit(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onSessionInit",e)}openReader(e,t){var r;this.options={sourceInfo:t},null===(r=this.rpc)||void 0===r||r.callMethod("onOpenReader",e)}syncStoreHandle(e){}openStoryReader(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onOpenStoryReader",e)}closeStoryReader(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onCloseStoryReader",e)}setStories(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setStories",e)}setFonts(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setFonts",e)}_destroyClientWidget(){this.rpc.callMethod("destroyWidget")}setAppearanceOptions(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setAppearanceOptions",e)}}var Sr=__webpack_require__(7981);class Cr{static createFunctionWithTimeout(e,t){let r=!1;function i(){r||(r=!0,e())}return setTimeout(i,t||1e3),i}static convertModelToFormData(e,t,r){t instanceof Object&&Object.keys(t).forEach((i=>{const n=t[i];if(n instanceof Object&&!Array.isArray(n))return this.convertModelToFormData(e,n,i);r&&(i=`${r}[${i}]`),Array.isArray(n)?n.forEach((t=>{e.append(`${i}[]`,t)})):e.append(i,n)}))}}const kr=e=>null==e;function Or(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)}function Lr(e,t){return Object.assign(Object.assign({},e),t)}function xr(e){return e.replace(/^\//,"")}function Ar(e){let t=e.length;for(let r=e.length-1;r>=0;r--){const i=e.charCodeAt(r);i>127&&i<=2047?t++:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&r--}return t}class Er{constructor(){return this._sdkConfigIsIncorrect=!1,this._userIdByteLimit=255,this._tagsByteLimit=4e3,this.userMessage="",this.tagsMessage="",Er.instance||(Er.instance=this),Er.instance}static getInstance(){return Er.instance?Er.instance:new Er}get sdkConfigIsIncorrect(){return this._sdkConfigIsIncorrect}get sdkConfigErrorsAsArray(){const e=[];return this.userMessage&&e.push(this.userMessage),this.tagsMessage&&e.push(this.tagsMessage),e}checkUserIdLength(e){this.userMessage="",null!=e&&Ar(String(e))>this._userIdByteLimit&&(console.error(`UserId is bigger then ${this._userIdByteLimit} bytes`),this._sdkConfigIsIncorrect=!0,this.userMessage=`UserId "${String(e)}" is bigger then ${this._userIdByteLimit} bytes`)}checkTagsLength(e){this.tagsMessage="",null!=e&&Array.isArray(e)&&Ar(e.join(","))>this._tagsByteLimit&&(console.error(`Tags (joined by ',') is bigger then ${this._tagsByteLimit} bytes`),this._sdkConfigIsIncorrect=!0,this.tagsMessage=`Tags (joined by ',') "${e.join(",")}" is bigger then ${this._tagsByteLimit} bytes`)}}var Mr=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Tr=`InAppStoryWebSDK/${parseInt(1)} ${navigator.userAgent}`;const Rr=new class{constructor(){this._deviceInfoPromise=null,this._baseHeaders={},this.requestInterceptors=[],this.interceptors={request:{use:e=>{this.requestInterceptors.push(e)}}}}set deviceInfoPromise(e){this._deviceInfoPromise=e}set baseHeaders(e){this._baseHeaders=e}get baseURL(){return`${q.C.apiUrl}/v2/`}request(e){return Mr(this,void 0,void 0,(function*(){return new Promise(((t,r)=>{const i=()=>Mr(this,void 0,void 0,(function*(){try{if(Or(e.headers)&&null!=e.headers||(e.headers={}),e.headers=Lr(this._baseHeaders,e.headers),this.requestInterceptors.length)for(const t of this.requestInterceptors)t(e);let r="";!kr(e.params)&&Or(e.params)&&(r=new URLSearchParams(Object.entries(e.params)).toString());let i=new URL(`${xr(e.url)}${r?"?"+r:""}`,this.baseURL),n="get";kr(e.method)||(n=e.method);let o={};!kr(e.headers)&&Or(e.headers)&&(o=e.headers);let s=null;!kr(e.data)&&Or(e.data)&&(s=JSON.stringify(e.data),o["Content-Type"]="application/json");try{if(Er.getInstance().sdkConfigIsIncorrect)return void t({data:{name:"SDK config is incorrect",message:Er.getInstance().sdkConfigErrorsAsArray.join(". "),status:400},headersRaw:{},headers:{},status:400,statusText:"SDK config is incorrect",ok:!1})}catch(e){console.error(e)}const a=yield fetch(i.toString(),{method:n,body:s,headers:o,credentials:"omit"}),l=yield a.json();t({data:l,headersRaw:a.headers,headers:Object.fromEntries([...a.headers]),status:a.status,statusText:a.statusText,ok:a.ok})}catch(e){r(e)}}));this._deviceInfoPromise?this._deviceInfoPromise.finally(i):i()}))}))}post(e,t){return Mr(this,void 0,void 0,(function*(){return this.request({method:"post",url:e,data:t})}))}get(e,t){return Mr(this,void 0,void 0,(function*(){return this.request({method:"get",url:e,params:t})}))}};function Ir(e,t,r){var i,n,o;if("sendBeacon"in navigator){const s=new URLSearchParams({access_token:x.Tl.getState().apiKey,session_id:null===(n=null===(i=Fr.getState())||void 0===i?void 0:i.session)||void 0===n?void 0:n.id,x_user_agent:Tr}),a=x.Tl.getState();null!=a.appPackageId&&s.append("x_app_package_id",a.appPackageId);const l=`${o=Rr.baseURL,o.replace(/\/$/,"")}/${xr(e)}?${s.toString()}`,d=new FormData;Object.keys(t).forEach((e=>{Cr.convertModelToFormData(d,t[e],e)}));let c=!1;null!=Array.from&&null!=d.keys&&(c=0===Array.from(d.keys()).length),c||navigator.sendBeacon(l,d),r()}else Rr.post(e,t).then((()=>r()),(()=>r()))}Rr.interceptors.request.use((e=>{var t,r,i;const n=x.Tl.getState();return e.headers=Lr(null!==(t=e.headers)&&void 0!==t?t:{},{Authorization:`Bearer ${n.apiKey}`,"Accept-Language":n.lang||"en","Auth-Session-Id":null===(i=null===(r=Fr.getState())||void 0===r?void 0:r.session)||void 0===i?void 0:i.id,"X-Device-Id":x.Ue.getState(),"X-User-Id":n.userId?n.userId:"","X-Request-Id":(0,Sr.A)(),"X-User-Agent":Tr}),null!=n.appPackageId&&(e.headers["X-App-Package-Id"]=n.appPackageId),e}));const Pr=Rr,Fr=(0,A.y$)({session:{id:"",expire_in:0},server_timestamp:0,content_base_url:"",user_key:"",share:!1,is_allow_profiling:!1,cache:[],placeholders:[],image_placeholders:[],editor:null,storyWidgetsResources:[],is_allow_ugc:!1}),jr=(0,A.EH)();Fr.on(jr.doneData,((e,t)=>t));const Dr=(0,A.lh)(),Br=(0,A.lh)();Fr.on(Br,(e=>{const t=Object.assign({},e);return t.session.id="",t}));const Nr=(0,A.EH)((e=>{Ir("session/update",e,(()=>{}))})).prepend((e=>({data:[[5,0,...e]]}))),Ur=Fr.map((e=>e.storyWidgetsResources));const Wr=function(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}();var $r=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let Gr=null;function qr(){return $r(this,void 0,void 0,(function*(){return null!=Gr?Gr:new Promise((e=>{!function(e,t){const r=new Image;r.onload=function(){var i=r.width>0&&r.height>0;t(e,i)},r.onerror=function(){t(e,!1)},r.src="data:image/webp;base64,"+{lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}[e]}("lossy",((t,r)=>{Gr=r,e(r)}))}))}))}var zr=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Hr=__webpack_require__(4406);function Vr(){return zr(this,void 0,void 0,(function*(){const[e,t]=yield Promise.all([Kr(),qr()]);return{method:"POST",url:"session/open",params:{expand:"cache,storyWidgetsResources",fields:"session,server_timestamp,user_key,share,preview_aspect_ratio,placeholders,image_placeholders,is_allow_ugc"},data:Yr(e,t)}}))}jr.use((()=>zr(void 0,void 0,void 0,(function*(){return(yield Pr.request(yield Vr())).data})))),(0,A.sY)({from:Dr,to:Fr});const Yr=(e,t)=>{"iOS"===e.os_name?window.isIos=!0:"Android"===e.os_name&&(window.Android=!0);const r=x.Tl.getState();return r&&r.userId&&(e.user_id=r.userId),e.features="animation,data,deeplink,placeholder,resetTimers,gameReader,sendApi,swipeUpItems,imgPlaceholder",t&&(e.features+=",webp"),e},Kr=()=>zr(void 0,void 0,void 0,(function*(){return new Promise(((e,t)=>{let r=function(e){let t=null;if(Wr){let r=window.localStorage.getItem(e);null!==r&&N()(r)&&r.trim().length>0&&(t=JSON.parse(r))}return t}("device_data"),i=null;if(null!==r&&(i=r.device_id),null!==r&&i&&N()(i)&&36===i.trim().length)(0,x.YB)(i),e(r);else{const t={platform:"web",device_id:Hr.v4()};!function(e,t){Wr&&window.localStorage.setItem(e,JSON.stringify(t))}("device_data",t),(0,x.YB)(t.device_id),e(t)}}))}));var Qr;!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.UGC=1]="UGC"}(Qr||(Qr={}));const Xr=e=>({id:e,type:Qr.DEFAULT,title:null,title_color:null,background:null,background_color:null,image:null,display_to:null,display_from:null,slides_html:[],slides_screenshot_share:[],slides_duration:[],favorite:null,like:null,slides_count:0,deeplink:null,hide_in_reader:null,disable_close:null,like_functional:null,favorite_functional:null,share_functional:null,is_opened:null,tags:[],has_audio:null,video_cover:null,need_placeholders:null,has_swipe_up:null,slides_payload:[],game_instance:{id:null},share_url:null,slidesLoaded:!1}),Jr=(0,A.y$)({default:[]}),Zr=Jr.map((e=>e[Fr.getState().user_key||"default"]||[]));var ei;!function(e){e.FEEDS="feeds",e.FAVORITE="favorite"}(ei||(ei={}));const ti=(0,A.y$)({default:{[ei.FEEDS]:{},[ei.FAVORITE]:[]}}),ri=ti.map((e=>e[Fr.getState().user_key||"default"]||{})),ii=(0,A.y$)({}),ni=(0,A.y$)({}),oi=(0,A.y$)([]),si=(e,t)=>e.map((e=>t.find((t=>t.id===e)))).filter((e=>!!e));ii.on([ri,Zr],((e,t)=>{const r=ri.getState(),i=Zr.getState();return((e,t)=>{const r={};for(const[i,n]of Object.entries(e))r[i]=si(n,t);return r})(r[ei.FEEDS],i)})),ni.on([ri,Zr],((e,t)=>{const r=ri.getState(),i={},n=Zr.getState();for(const e in r[ei.FEEDS])if("onboarding_"===e.substring(0,11)){const t=e.substring(11);i[t]=[],r[ei.FEEDS][e]&&Array.isArray(r[ei.FEEDS][e])&&(i[t]=n.filter((t=>-1!==r[ei.FEEDS][e].indexOf(t.id)&&!t.is_opened)))}return i})),oi.on([ri,Zr],((e,t)=>{const r=ri.getState();return Zr.getState().filter((e=>{var t;return-1!==(null===(t=r[ei.FAVORITE])||void 0===t?void 0:t.indexOf(e.id))}))}));const ai=(0,A.EH)(),li=(e,t="")=>(e.is_opened,e.is_opened),di=Zr.map((e=>{const t={};return t[Qr.DEFAULT]=e.filter((e=>!e.slidesLoaded&&e.type===Qr.DEFAULT)).map((e=>e.id)),t[Qr.UGC]=e.filter((e=>!e.slidesLoaded&&e.type===Qr.UGC)).map((e=>e.id)),t})),{storyItemFavoriteChanged:ci,storyItemLikeChanged:ui,storyItemIsOpenedChanged:pi}=(Object.prototype.hasOwnProperty,(0,A.xP)(Jr,{storyItemFavoriteChanged:(e,{id:t,favorite:r})=>{const i=Fr.getState().user_key||"default",n=(e[i]||[]).slice(0),o=n.find((e=>e.id===t));return void 0!==o&&(o.favorite=r),Object.assign(Object.assign({},e),{[i]:n})},storyItemLikeChanged:(e,{id:t,like:r})=>{const i=Fr.getState().user_key||"default",n=(e[i]||[]).slice(0),o=n.find((e=>e.id===t));return void 0!==o&&(o.like=r),Object.assign(Object.assign({},e),{[i]:n})},storyItemIsOpenedChanged:(e,{id:t})=>{const r=Fr.getState().user_key||"default",i=(e[r]||[]).slice(0),n=i.find((e=>e.id===t));return void 0!==n&&(n.is_opened=!0),Object.assign(Object.assign({},e),{[r]:i})}}));var fi=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function hi(e,t,r=!1,i,n){const o=["slides_html","slides_duration","slides_screenshot_share","slides_payload"];n&&o.push("share_url");const s={url:`${t===ts?"ugc/":""}story/${e}`,method:"GET",params:{expand:o.join(",")}};return r||null!=s.params&&(s.params.fields=["id","slides_html","slides_duration","slides_screenshot_share","slides_payload"].join(",")),null!==i&&null!=s.params&&(s.params.session_id=i),s}ai.use((({listType:e})=>fi(void 0,void 0,void 0,(function*(){return Pr.get("story",gi())}))));const gi=(e,t,r,i,n)=>{var o;let s=null===(o=x.Tl.getState())||void 0===o?void 0:o.tags;const a={};s&&M()(s)&&s.length>0&&(a.tags=s.join(",")),void 0!==t&&M()(t)&&t.length>0&&(a.tags=t.join(","));return null==i||"number"!=typeof i&&!(e=>!isNaN(parseFloat(e))&&isFinite(e))(i)||(a.limit=i),e&&(a.session_id=e),null!=r&&(a.test=r),null!=n&&R()(n)&&(a.f=n),{params:a}},vi=(0,A.EH)();var mi=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};vi.use((()=>mi(void 0,void 0,void 0,(function*(){return(yield Pr.request(yield function(){return mi(this,void 0,void 0,(function*(){return{method:"GET",url:"ugc/editor-config",params:{}}}))}())).data})))),Fr.on(vi.doneData,((e,t)=>{const r=Object.assign({},e);return r.editor=t,r}));const yi=(e,t)=>{const r={};return r[Qr.DEFAULT]=[],r[Qr.UGC]=[],r[e]=t,{storyTypeIds:r,style:"",widgetsData:{}}},_i=(e,t)=>{let r;return r=null==t?yi(Qr.DEFAULT,[]):t,{ids:r.storyTypeIds[e],style:r.style,widgetsData:r.widgetsData}},bi=(0,A.y$)({style:"",storyTypeIds:{[Qr.DEFAULT]:[],[Qr.UGC]:[]},widgetsData:{}}),wi=(0,A.EH)(),Si=(0,A.lh)();var Ci=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function ki(e,t){const r={url:"story-context",method:"GET",params:{id:e.join(","),fields:["style","widgetsData"].join(",")}};return null!=t&&null!=r.params&&(r.params.session_id=t),r}function Oi(e,t,r){return String(e).replace(new RegExp(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(t),"g"),(()=>r))}wi.use((({ids:e})=>Ci(void 0,void 0,void 0,(function*(){return Pr.request(ki(e))})))),(0,A.sY)({from:wi.done.filterMap((({params:e,result:t})=>{const r=t.data,i=rs(e.feedSlug);if(r&&R()(r)){const t=yi(i,e.ids);return t.style=r.style,t.widgetsData=r.widgetsData,t}})),to:bi}),(0,A.sY)({from:Si,to:bi});var Li=__webpack_require__(3514),xi=__webpack_require__.n(Li);const Ai=(0,A.y$)({default:{},user:{}}),{sdkImagePlaceholdersChanged:Ei,addDefaultImagePlaceholders:Mi}=(0,A.xP)(Ai,{sdkImagePlaceholdersChanged:(e,t)=>({default:e.default,user:t}),addDefaultImagePlaceholders:(e,t)=>{let r={default:{},user:e.user};return M()(t)&&t.forEach((e=>{R()(e)&&void 0!==e.name&&void 0!==e.default_value&&(r.default[e.name]=e.default_value)})),r}});var Ti=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Ri=(0,A.EH)((({defaultList:e,onboardingList:t,favoriteList:r,onboardingTags:i,testKey:n,limit:o})=>Ti(void 0,void 0,void 0,(function*(){var s,a,l;const d=[],c=null===(a=null===(s=Fr.getState())||void 0===s?void 0:s.session)||void 0===a?void 0:a.id;let u=null;if(xi()(c)&&(d.push(Ii(yield Vr(),"session")),u="@{session.session.id}"),!1!==e&&R()(e)&&N()(e.feedSlug)){const t=e.feedSlug,r=null!==(l=e.filter)&&void 0!==l?l:{};t===ts?d.push(Ii(function(e,t,r,i,n){const{params:o}=gi(r,i,n,null,t);return{method:"GET",url:"ugc/feed",params:o}}(0,r,u,[],n),`storyList_${t}`)):d.push(Ii(function(e,t,r,i){const{params:n}=gi(t,r,i);return{method:"GET",url:`feed/${e}`,params:n}}(t,u,[],n),`storyList_${t}`))}r&&d.push(Ii(function(e){const{params:t}=gi(e);return{method:"GET",url:"story",params:Object.assign(Object.assign({},t),{favorite:1})}}(u),"storyFavoriteList")),!1!==t&&N()(t)&&d.push(Ii(function(e="onboarding",t,r,i){const{params:n}=gi(t,r,null,i);return{method:"GET",url:`feed/${e}/onboarding`,params:n}}(t,u,i,o),`storyOnboardingList_${t}`));let p=null;try{const e=yield Pr.post("composite",{compositeRequest:d});if(e.status>=200&&e.status<=299)if(e.data&&e.data.compositeResponse&&Array.isArray(e.data.compositeResponse)){if(e.data.success)return e.data.compositeResponse;for(const t of e.data.compositeResponse){const e=t.status;if(W()(e)&&!(e>=200&&e<=299)){p={name:"networkError",networkStatus:e,networkMessage:String(t.body)};break}}}else p=e.data&&R()(e.data)&&null!=e.data.name&&null!=e.data.message&&null!=e.data.status?{name:e.data.name,networkStatus:e.data.status,networkMessage:e.data.message}:{name:"networkError",networkStatus:null,networkMessage:"Invalid data in API response, data from response as json: "+JSON.stringify(e.data)};else p=e.data&&R()(e.data)&&null!=e.data.name&&null!=e.data.message&&null!=e.data.status?{name:e.data.name,networkStatus:e.data.status,networkMessage:e.data.message}:{name:"networkError",networkStatus:e.status,networkMessage:"Invalid data in API response, data from response as json: "+JSON.stringify(e.data)}}catch(e){try{const t=e;if(t.response&&t.response.status)p={name:"networkError",networkStatus:t.response.status,networkMessage:t.response.statusText};else{let t="";window.navigator&&null!=window.navigator.onLine&&(t=" net::ERR_INTERNET_DISCONNECTED"),p={name:"error",networkStatus:null,networkMessage:e.toString()+t},console.error(e)}}catch(e){p={name:"error",networkStatus:null,networkMessage:e.toString()}}}if(null!==p)throw p;return[]})))),Ii=(e,t)=>({path:e.url,qs:e.params,body:e.data,ref:t,method:e.method}),Pi=e=>{const t=I.getState();for(let r in t.user)ji.call(t.user,r)&&(e=Oi(e,`%${r}%`,t.user[r]));for(let r in t.default)ji.call(t.default,r)&&(e=Oi(e,`%${r}%`,t.default[r]));const r=Ai.getState();for(let t in r.user)ji.call(r.user,t)&&(e=Oi(e,`%${t}%`,r.user[t]));for(let t in r.default)ji.call(r.default,t)&&(e=Oi(e,`%${t}%`,r.default[t]));return e},Fi=(e,t)=>Array.isArray(e)?e.map((e=>Object.assign(Object.assign({},e),{title:e.need_placeholders?Pi(e.title):e.title,slidesLoaded:!1,is_opened:li(e),type:t}))):[];(0,A.sY)({from:Ri.doneData.filterMap((e=>{var t;return null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body})),to:Fr}),(0,A.sY)({from:Ri.doneData.filterMap((e=>{var t,r;return null===(r=null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body)||void 0===r?void 0:r.placeholders})),to:F}),(0,A.sY)({from:Ri.doneData.filterMap((e=>{var t,r;return null===(r=null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body)||void 0===r?void 0:r.image_placeholders})),to:Mi}),(0,A.sY)({from:jr.doneData.filterMap((e=>e.placeholders)),to:F}),(0,A.sY)({from:jr.doneData.filterMap((e=>e.image_placeholders)),to:Mi});const ji=Object.prototype.hasOwnProperty;(0,A.XM)({source:Jr,clock:Fr,fn:(e,t)=>{const r={};for(const i in e)ji.call(e,i)&&(r[i]=e[i].map((e=>Object.assign(Object.assign({},e),{is_opened:li(e,t.user_key),title:e.need_placeholders?Pi(e.title):e.title}))));return r},target:Jr});const{storiesListIdsChanged:Di}=(0,A.xP)(ti,{storiesListIdsChanged:(e,{storiesIdsUserEntity:t,feedSlug:r,storyList:i})=>{let n=Fr.getState().user_key||"default";const o=e[n]||{};return void 0===o[ei.FAVORITE]&&(o[ei.FAVORITE]=[]),void 0===o[ei.FEEDS]&&(o[ei.FEEDS]={}),t===ei.FEEDS&&r&&(o[ei.FEEDS][r]=i.map((e=>e.id))),t===ei.FAVORITE&&(o[ei.FAVORITE]=i.map((e=>e.id))),Object.assign(Object.assign({},e),{[n]:o})}}),{storiesListItemsAdded:Bi}=(0,A.xP)(Jr,{storiesListItemsAdded:(e,{storiesIdsUserEntity:t,feedSlug:r,storyList:i})=>{let n=Fr.getState().user_key||"default";const o=e[n]||[],s=o.map((e=>e.id));return Object.assign(Object.assign({},e),{[n]:[...o,...i.filter((e=>-1===s.indexOf(e.id)))]})}});(0,A.sY)({from:Ri.doneData.filterMap((e=>{var t;let r=null;for(const i of e)if(i.ref&&N()(i.ref)){const e=i.ref.match(/^storyList_(.+)/);if(e&&Array.isArray(e)&&e[1]){let n=null===(t=i.body)||void 0===t?void 0:t.stories;const o=rs(e[1]);o===Qr.UGC&&(n=i.body);const s=Fi(n,o);r={storiesIdsUserEntity:ei.FEEDS,feedSlug:e[1],storyList:s}}}if(r)return r})),to:[Bi,Di]}),(0,A.sY)({from:Ri.doneData.filterMap((e=>{var t;let r=null;for(const i of e)if(i.ref&&N()(i.ref)){const e=i.ref.match(/^storyOnboardingList_(.+)/);if(e&&Array.isArray(e)&&e[1]){const n=Fi(null===(t=i.body)||void 0===t?void 0:t.stories,Qr.DEFAULT);r={storiesIdsUserEntity:ei.FEEDS,feedSlug:`onboarding_${e[1]}`,storyList:n}}}if(r)return r})),to:[Bi,Di]}),(0,A.sY)({from:Ri.doneData.filterMap((e=>{const t=e.find((e=>"storyFavoriteList"===e.ref));if(void 0===t)return;const r=Fi(t.body,Qr.DEFAULT);return{storiesIdsUserEntity:ei.FAVORITE,feedSlug:null,storyList:r}})),to:[Bi,Di]});const Ni=(0,A.EH)();Ni.use((e=>Ti(void 0,void 0,void 0,(function*(){const t=e.ids.map((t=>Ii(hi(t,e.feedSlug),`storySlides_${t}`))),r=yield Pr.post("composite",{compositeRequest:t});return r.data&&r.data.success&&r.data.compositeResponse&&Array.isArray(r.data.compositeResponse)?r.data.compositeResponse:[]}))));const Ui=e=>e&&R()(e)&&"id"in e,Wi=(0,A.EH)();Wi.use((({ids:e,id:t,feedSlug:r})=>Ti(void 0,void 0,void 0,(function*(){const i=[Ii(hi(t,r),"storySlides"),Ii(ki(e),"storyContext")],n=yield Pr.post("composite",{compositeRequest:i});return n.data&&n.data.success&&n.data.compositeResponse&&Array.isArray(n.data.compositeResponse)?n.data.compositeResponse:[]})))),Jr.on([Ni.done,Wi.done],((e,{params:t,result:r})=>{const i=r;if(Array.isArray(i)){const r=rs(t.feedSlug),n=Fr.getState().user_key||"default",o=(e[n]||[]).slice(0).map((e=>{var t,n,o,s,a,l,d,c,u,p,f,h,g;for(let v=0;v<i.length;v++)if(Ui(null===(t=i[v])||void 0===t?void 0:t.body)&&(null===(o=null===(n=i[v])||void 0===n?void 0:n.body)||void 0===o?void 0:o.id)===e.id&&r===e.type)return Object.assign({},e,{slides_html:e.need_placeholders?Array.from(null===(a=null===(s=i[v])||void 0===s?void 0:s.body)||void 0===a?void 0:a.slides_html).map((e=>Pi(e))):Array.from(null===(d=null===(l=i[v])||void 0===l?void 0:l.body)||void 0===d?void 0:d.slides_html),slides_duration:null===(u=null===(c=i[v])||void 0===c?void 0:c.body)||void 0===u?void 0:u.slides_duration,slides_screenshot_share:null===(f=null===(p=i[v])||void 0===p?void 0:p.body)||void 0===f?void 0:f.slides_screenshot_share,slides_payload:null===(g=null===(h=i[v])||void 0===h?void 0:h.body)||void 0===g?void 0:g.slides_payload,slidesLoaded:!0,is_opened:li(e)});return e}));return Object.assign(Object.assign({},e),{[n]:o})}return e})),(0,A.sY)({from:Wi.done.filterMap((({params:e,result:t})=>{var r;const i=null===(r=t.find((e=>"storyContext"===e.ref)))||void 0===r?void 0:r.body,n=rs(e.feedSlug);if(i&&R()(i)){const t=yi(n,e.ids);return t.widgetsData=i.widgetsData,t.style=i.style,t}})),to:bi});const $i=(0,A.EH)((({id:e,feedSlug:t,fetchShareUrl:r})=>Ti(void 0,void 0,void 0,(function*(){var i,n;const o=[],s=null===(n=null===(i=Fr.getState())||void 0===i?void 0:i.session)||void 0===n?void 0:n.id;let a=null;xi()(s)&&(o.push(Ii(yield Vr(),"session")),a="@{session.session.id}"),o.push(Ii(hi(e,t,!0,a,r),"story")),o.push(Ii(ki([e],a),"storyContext"));const l=yield Pr.post("composite",{compositeRequest:o});if(l.data&&l.data.success&&l.data.compositeResponse&&Array.isArray(l.data.compositeResponse))return l.data.compositeResponse;if(l.data&&!l.data.success)throw Error("composite request error:"+JSON.stringify(l.data.compositeResponse));return[]}))));(0,A.sY)({from:$i.doneData.filterMap((e=>{var t;const r=null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body;if(r&&R()(r)&&r)return r})),to:Fr}),(0,A.sY)({from:$i.doneData.filterMap((e=>{var t,r;return null===(r=null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body)||void 0===r?void 0:r.placeholders})),to:F}),(0,A.sY)({from:$i.doneData.filterMap((e=>{var t,r;return null===(r=null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body)||void 0===r?void 0:r.image_placeholders})),to:Mi}),(0,A.sY)({from:$i.done.filterMap((({params:e,result:t})=>{var r;const i=null===(r=t.find((e=>"storyContext"===e.ref)))||void 0===r?void 0:r.body;if(i&&R()(i)){const t=rs(e.feedSlug),r=yi(t,[e.id]);return r.widgetsData=i.widgetsData,r.style=i.style,r}})),to:bi}),Jr.on($i.done.filterMap((({params:e,result:t})=>{var r;const i=null===(r=t.find((e=>"story"===e.ref)))||void 0===r?void 0:r.body;if(i&&R()(i))return i.type=rs(e.feedSlug),i})),((e,t)=>{if(!Ui(t))return;const r=Fr.getState().user_key||"default",i=(e[r]||[]).slice(0).filter((e=>e.id!==(null==t?void 0:t.id))).slice(0);return t=Object.assign(t,{slides_html:t.need_placeholders?Array.from(t.slides_html).map((e=>Pi(e))):Array.from(t.slides_html),slides_duration:t.slides_duration,slidesLoaded:!0,is_opened:li(t)}),i.push(t),Object.assign(Object.assign({},e),{[r]:i})})),(0,A.XM)({source:Jr,clock:I,fn:(e,t)=>{const r={};for(const t in e)ji.call(e,t)&&(r[t]=e[t].map((e=>Object.assign(Object.assign({},e),{slides_html:e.need_placeholders?Array.isArray(e.slides_html)?e.slides_html.map((e=>Pi(e))):e.slides_html:[]}))));return r},target:Jr});const Gi=function(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}();var qi,zi=__webpack_require__(2438),Hi=__webpack_require__.n(zi);!function(e){e.START_LOADING="startLoading",e.END_LOADING="endLoading",e.CLOSE_STORY_READER="closeStoryReader"}(qi||(qi={}));var Vi=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Yi=(0,A.EH)((({gameInstanceId:e,gameOptions:t})=>Vi(void 0,void 0,void 0,(function*(){var r,i;(null===(i=null===(r=Fr.getState())||void 0===r?void 0:r.session)||void 0===i?void 0:i.id)||(yield jr({}));const n={};t&&R()(t)&&null!=t.demoMode&&(n.demoMode=Boolean(t.demoMode));const o=yield Pr.post(`game/${e}/launch?expand=config`,n);if(!o.ok)throw new Error(JSON.stringify(o.data));return o.data.clientConfig=Ki(),o.data})))),Ki=()=>{let e=Fr.getState();const t=x.Tl.getState();return{sessionId:e.session.id,userKey:e.user_key,apiKey:t.apiKey,sdkVersion:"0.0.1",apiBaseUrl:q.C.apiUrl,userAgent:Tr,appPackageId:t.appPackageId,deviceId:x.Ue.getState(),userId:t.userId?t.userId:"",lang:t.lang,placeholders:cs.combinedPlaceholders}};var Qi,Xi,Ji;!function(e){e.OpenReader="openReader",e.CloseReader="closeReader",e.StartGame="startGame",e.GameComplete="gameComplete",e.WidgetLoaded="widgetLoaded"}(Qi||(Qi={})),function(e){e.OpenGameUrl="openGameUrl",e.SetOptions="setOptions",e.SetGame="setGame",e.SetError="setError",e.EventCb="eventCb",e.Close="close",e.Open="open"}(Xi||(Xi={})),function(e){e.RetryLoadingGame="retryLoadingGame",e.OpenGameUrl="openGameUrl",e.StartGame="startGame",e.GameComplete="gameComplete",e.ApiRequest="apiRequest",e.WidgetLoaded="widgetLoaded"}(Ji||(Ji={}));var Zi,en=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class tn{constructor(e,t){this.eventEmitter=e,this.rpc=t}callMethod(e,t){var r;null===(r=this.rpc)||void 0===r||r.callMethod("emitEvent",e,t)}on(e,t){return this.eventEmitter.on(e,t),this}}class rn extends $.A{constructor(){super(...arguments),this.iframe=null}get gameInstanceId(){return this._gameInstanceId}init(e){const r=Object.create(null,{__init:{get:()=>super.__init}});return en(this,void 0,void 0,(function*(){this.appearanceManager=e.appearanceManager,this.clickOnButtonAction=e.clickOnButtonAction,this.handleApiRequest=e.handleApiRequest;const i={startHeight:70,minWidth:150,storiesHeight:70,fullScreen:!0,scrolling:!1,hidden:!0};return this.initAppearanceManagerEventHandlers(),new Promise(((e,n)=>{const o=new t.EventEmitter;r.__init.call(this,{},{},this.appearanceManager.gameReaderOptions,{emitEvent:(e,t)=>{e!==Ji.WidgetLoaded?o.emit(e,t):this.emit(e,t)}},i,((e,t,r)=>{this.rpcServer=new tn(o,r),this.iframe=t,this.initGameReaderEventHandlers()}),null,null,e,n)}))}))}getWidgetDocument(e,t){return`\n <script type="text/javascript" src="${`${q.C.baseUrl}/v2.10.4/dist/js/gameReader.js`}"><\/script>\n <div id="app"><div id="_app"></div></div>\n <script type="text/javascript" nonce="${t}">\n window.gameReader.init(${JSON.stringify(e)});\n <\/script>\n`}openGame(e,t={}){return en(this,void 0,void 0,(function*(){this._gameInstanceId=e,this.open(),yield this.launchGameById(e,t)}))}open(){var e;const t=this.iframe;t&&(t.style.setProperty("display","block"),t.style.setProperty("z-index","2147483645"),null===(e=this.rpcServer)||void 0===e||e.callMethod(Xi.Open),this.emit(Qi.OpenReader))}close(){return en(this,void 0,void 0,(function*(){return null!=this.rpcServer&&(this.rpcServer.callMethod(Xi.Close),new Promise(((e,t)=>{this.once(Qi.GameComplete,(()=>e(!0)))})))}))}rpcCb(e,t){var r;null===(r=this.rpcServer)||void 0===r||r.callMethod(Xi.EventCb,t)}launchGameById(e,t={}){return en(this,void 0,void 0,(function*(){try{this.setError(void 0);const r=yield Yi({gameInstanceId:e,gameOptions:t});this.setGame(r)}catch(e){this.setError(e)}}))}setGame(e){var t;null===(t=this.rpcServer)||void 0===t||t.callMethod(Xi.SetGame,e)}setError(e){var t;null===(t=this.rpcServer)||void 0===t||t.callMethod(Xi.SetError,e)}initAppearanceManagerEventHandlers(){this.appearanceManager.on(_.EVENT_UPDATED_GAME_READER_OPTIONS,(e=>this.setOptions(e)))}setOptions(e){var t;null===(t=this.rpcServer)||void 0===t||t.callMethod(Xi.SetOptions,e)}initGameReaderEventHandlers(){var e;null===(e=this.rpcServer)||void 0===e||e.on(Ji.OpenGameUrl,(e=>this.handleOpenGameUrl(e))).on(Ji.RetryLoadingGame,(()=>{this.gameInstanceId&&this.launchGameById(this.gameInstanceId)})).on(Ji.ApiRequest,(e=>this.handleApiRequest(e,this))).on(Ji.StartGame,(e=>this.emit(Qi.StartGame,e))).on(Ji.GameComplete,(e=>this.handleCloseGame(e)))}handleCloseGame(e){var t,r;window.focus(),null===(t=this.iframe)||void 0===t||t.style.setProperty("display","none"),null===(r=this.browserHistory)||void 0===r||r.destroy(),this.emit(Qi.CloseReader),this.emit(Qi.GameComplete,e)}handleOpenGameUrl({url:e,gameInstanceId:t}){const r={url:e,gameInstanceId:t};this.clickOnButtonAction(r)}}!function(e){e.STORY_LIST="storyList",e.STORY_READER="storyReader",e.GAME_READER="gameReader"}(Zi||(Zi={}));var nn=__webpack_require__(3643);const on=__webpack_require__.n(nn)().getParser(window.navigator.userAgent).parse();function sn(e){return!/^(-?\d|--)/.test(e)}function an(e){const t=[];let r="",i="",n=7;for(let o,s=0;o=e.charAt(s);s++)if(/[a-zA-Z\d\xa0-\uffff_-]/.test(o)&&7===n)r+=o;else if("\\"===o&&7===n)n=6;else if(" "===o&&7===n){if(""!==r){if(!sn(r))return null;t.push(r),r=""}}else if(6===n)/[0-9a-f]/i.test(o)?(i+=o,n=8):(r+=o,n=7);else{if(8!==n)return null;/[0-9a-f]/i.test(o)&&i.length<6?i+=o:(r+=String.fromCodePoint(parseInt(i,16)),r+=o,i="",n=7)}if(""!==r){if(!sn(r))return null;t.push(r)}return t.join(" ")}function ln(e,t){let r=t,i="";const n={"font-family":[]};for(let t,o=0;t=e.charAt(o);o+=1)if(4!==r||'"'!==t&&"'"!==t)if(3===r&&","===t)r=4,i="";else if(4===r&&","===t){const e=an(i);e&&n["font-family"].push(e),i=""}else if(5===r&&" "===t)/^(?:\+|-)?(?:[0-9]*\.)?[0-9]+(?:deg|grad|rad|turn)$/.test(i)?(n["font-style"]+=" "+i,i=""):o-=1,r=1;else if(1!==r||" "!==t&&"/"!==t)2===r&&" "===t?(/^(?:\+|-)?([0-9]*\.)?[0-9]+(?:em|ex|ch|rem|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc|%)?$/.test(i)&&(n["line-height"]=i),r=4,i=""):i+=t;else{if(/^(?:(?:xx|x)-large|(?:xx|s)-small|small|large|medium)$/.test(i)||/^(?:larg|small)er$/.test(i)||/^(?:\+|-)?(?:[0-9]*\.)?[0-9]+(?:em|ex|ch|rem|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc|%)$/.test(i))r="/"===t?2:4,n["font-size"]=i;else if(/^italic$/.test(i))n["font-style"]=i;else if(/^oblique$/.test(i))n["font-style"]=i,r=5;else if(/^small-caps$/.test(i))n["font-variant"]=i;else if(/^(?:bold(?:er)?|lighter|normal)$/.test(i))n["font-weight"]=i;else if(/^[+-]?(?:[0-9]*\.)?[0-9]+(?:e[+-]?(?:0|[1-9][0-9]*))?$/.test(i)){const e=parseFloat(i);e>=1&&e<=1e3&&(n["font-weight"]=i)}else/^(?:(?:ultra|extra|semi)-)?(?:condensed|expanded)$/.test(i)&&(n["font-stretch"]=i);i=""}else{let s=o+1;do{if(s=e.indexOf(t,s)+1,!s)return null}while("\\"===e.charAt(s-2));n["font-family"].push(e.slice(o+1,s-1).replace(/\\('|")/g,"$1")),o=s-1,r=3,i=""}if(3===r&&!/^\s*$/.test(i))return null;if(4===r){const e=an(i);e&&n["font-family"].push(e)}return n}var dn=__webpack_require__(4855),cn=__webpack_require__.n(dn);class un{toString(){return`${this.fontStyle} ${this.fontVariant} ${this.fontWeight} ${this.fontSize}px/${this.lineHeight} ${this.fontFamily.join(", ")}`}clone(){const e=new un;return e.fontStyle=this.fontStyle,e.fontVariant=this.fontVariant,e.fontWeight=this.fontWeight,e.fontSize=this.fontSize,e.lineHeight=this.lineHeight,e.fontFamily=this.fontFamily.slice(),e}}class pn{constructor(e,t){this.obj=e,this.cardTitleOptions=t,this.cardTitleFont=this.getCardTitleParsedFont(t.font)}getCardTitleFont(){return this.cardTitleFont.clone()}getScaledFontSizeInWebView(){const e=this.measureScaledFontSizeInWebView(this.cardTitleFont.fontSize)/this.cardTitleFont.fontSize;return this.cardTitleFont.fontSize/e}getStoryTitleBlockHeight(){if(!this.isOutsideTitle())return 0;const e=this.cardTitleOptions.padding;let t={top:0,bottom:0};try{if("number"==typeof e)t.top=e,t.bottom=e;else{const r=cn()(e);t.top=parseFloat(r.top),t.bottom=parseFloat(r.bottom)}}catch(e){console.error(e)}const r=this.cardTitleOptions.lineClamp,i=Math.round(this.cardTitleFont.fontSize*this.cardTitleFont.lineHeight*100)/100;return t.top+t.bottom+r*i}measureScaledFontSizeInWebView(e){const t=document.createElement("span");t.style.fontSize=e+"px",t.style.display="none",this.obj.append(t);const r=getComputedStyle(t).fontSize;return this.obj.removeChild(t),parseFloat(r)||e}isOutsideTitle(){return this.cardTitleOptions.display&&(this.cardTitleOptions.position===s.CARD_OUTSIDE_TOP||this.cardTitleOptions.position===s.CARD_OUTSIDE_BOTTOM)}getCardTitleParsedFont(e){const t=new un;t.fontStyle="normal",t.fontVariant="normal",t.fontWeight="normal",t.fontSize=14,t.lineHeight=1.2,t.fontFamily=["system-ui",'"Segoe UI"',"Roboto","Helvetica","Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'];try{const r=function(e){const t=ln(e,1);return null!==t&&t["font-size"]&&t["font-family"].length?t:null}(e);if(null!=r["font-style"]&&(t.fontStyle=r["font-style"]),null!=r["font-variant"]&&(t.fontVariant=r["font-variant"]),null!=r["font-weight"]&&(t.fontWeight=r["font-weight"]),null!=r["font-size"]){const e=parseFloat(r["font-size"]);String(`${e}px`)===r["font-size"]&&(t.fontSize=e)}if(null!=r["line-height"]){const e=parseFloat(r["line-height"]);String(`${e}px`)===r["line-height"]?t.lineHeight=Math.round(e/t.fontSize*100)/100:String(e)===r["line-height"]&&(t.lineHeight=parseFloat(r["line-height"]))}null!=r["font-family"]&&Array.isArray(r["font-family"])&&(t.fontFamily=r["font-family"])}catch(e){console.error(e)}return t}}class fn{constructor(e){this.storiesListOptions=e}getStoriesListStyleOptions(e){var t,r,i,n,o,s;let a={storiesHeight:null!==(r=null===(t=this.storiesListOptions.card)||void 0===t?void 0:t.height)&&void 0!==r?r:70,storiesLayoutHeight:null!==(n=null===(i=this.storiesListOptions.layout)||void 0===i?void 0:i.height)&&void 0!==n?n:0,storiesListTopPadding:null!==(o=this.storiesListOptions.topPadding)&&void 0!==o?o:0,storiesListBottomPadding:null!==(s=this.storiesListOptions.bottomPadding)&&void 0!==s?s:0},l=parseFloat(a.storiesHeight),d=l;if(parseFloat(a.storiesLayoutHeight))return l=parseFloat(a.storiesLayoutHeight),{storiesListHeight:l,storiesListInnerHeight:d};return l+=parseFloat(a.storiesListTopPadding)+parseFloat(a.storiesListBottomPadding)+e,d+=e,{storiesListHeight:l,storiesListInnerHeight:d}}}const hn=/[\r\n%#()<>?[\\\]^`{|}]/g;function gn(e,t="double"){return(e=(e=(e="double"===t?e.replace(/"/g,"'"):e.replace(/'/g,'"')).replace(/>\s{1,}</g,"><")).replace(/\s{2,}/g," ")).replace(hn,encodeURIComponent)}const vn=e=>!isNaN(parseFloat(e))&&isFinite(e),mn=(0,K.forwardRef)(((e,t)=>{const r=e.sliderOptions.card,i=r.border,n=r.opened.border,o=e.sliderOptions.navigation,s=()=>{var e,t,r;return(null!==(e=n.radius)&&void 0!==e?e:i.radius)-parseFloat(null!==(t=n.width)&&void 0!==t?t:i.width)/2-parseFloat(null!==(r=n.gap)&&void 0!==r?r:i.gap)};return Ot("div",{ref:t,className:e.className,style:Object.assign(Object.assign({},(()=>{var t,a,l,d,c,u,p,f,h,g,v,m,y,_,b,w,S,C,k,O,L;const x=e=>{let t="";return null!=e&&Array.isArray(e.linearGradient)&&(t=e.linearGradient.map((({direction:e,points:t})=>`linear-gradient(${[e,t].filter(Boolean).join(", ")})`)).join(", ")),t};let A={"--storiesBorderNotReadColor":i.color,"--storiesBorderReadColor":null!==(t=n.color)&&void 0!==t?t:i.color,"--storiesBorderNotReadGradientColor":null==i?void 0:i.gradient,"--storiesBorderReadGradientColor":null!==(a=null==n?void 0:n.gradient)&&void 0!==a?a:null==i?void 0:i.gradient,"--storiesListCardFavoriteGradientColor":null===(l=e.sliderOptions.favoriteCard.border)||void 0===l?void 0:l.gradient,"--storiesListCardUgcGradientColor":null===(d=e.sliderOptions.ugcCard.border)||void 0===d?void 0:d.gradient,"--storiesGap":r.gap+"px","--storiesHeight":r.height+"px","--storiesListSidePadding":e.sliderOptions.sidePadding+"px","--storiesListBorderNotReadWidth":i.width+"px","--storiesListBorderReadWidth":(null!==(c=n.width)&&void 0!==c?c:n.width)+"px","--storiesListBorderGapNotRead":i.gap+"px","--storiesListBorderGapRead":(null!==(u=n.gap)&&void 0!==u?u:n.gap)+"px","--storiesListBorderRadius":i.radius+"px","--storiesListBorderRadiusRead":(null!==(p=n.radius)&&void 0!==p?p:n.radius)+"px","--storiesListItemMaskColor":r.mask.color,"--storiesListItemOpenedMaskColor":null!==(f=r.opened.mask.color)&&void 0!==f?f:r.mask.color,"--storiesListItemMaskLinearGradient":x(r.mask),"--storiesListItemOpenedMaskLinearGradient":x(null!=(null===(g=null===(h=r.opened)||void 0===h?void 0:h.mask)||void 0===g?void 0:g.linearGradient)?r.opened.mask:r.mask),"--storiesListCardUgcMaskColor":e.sliderOptions.ugcCard.mask.color,"--storiesListCardUgcMaskLinearGradient":x(e.sliderOptions.ugcCard.mask),"--storiesListItemTitleColor":r.title.color,"--storiesListItemTitleFontFamily":"InternalPrimaryFont","--storiesListItemTitleFont":r.title.font,"--storiesListItemTitlePadding":vn(r.title.padding)?r.title.padding+"px":r.title.padding,"--storiesListControlsSize":vn(o.controlsSize)?o.controlsSize+"px":o.controlsSize,"--storiesListControlsBackgroundColor":o.controlsBackgroundColor,"--storiesListControlsColor":o.controlsColor,"--storiesListInnerBorderRadiusNotRead":i.radius-parseFloat(i.width)/2-parseFloat(i.gap)+"px","--storiesListInnerBorderRadiusRead":s()+"px","--storiesListCardDropShadow":r.dropShadow,"--storiesListCardOpenedDropShadow":null!==(v=r.opened.dropShadow)&&void 0!==v?v:r.dropShadow,"--storiesListCardFavoriteDropShadow":e.sliderOptions.favoriteCard.dropShadow,"--storiesListCardUgcDropShadow":e.sliderOptions.ugcCard.dropShadow,"--storiesListCardMask":(null===(m=r.svgMask)||void 0===m?void 0:m.cardMask)?`url("data:image/svg+xml,${gn(null===(y=r.svgMask)||void 0===y?void 0:y.cardMask)}")`:null,"--storiesListCardOpenedMask":(null===(_=r.opened.svgMask)||void 0===_?void 0:_.cardMask)?`url("data:image/svg+xml,${gn(null===(b=r.opened.svgMask)||void 0===b?void 0:b.cardMask)}")`:null,"--storiesListCardFavoriteMask":(null===(w=e.sliderOptions.ugcCard.svgMask)||void 0===w?void 0:w.cardMask)?`url("data:image/svg+xml,${gn(null===(S=e.sliderOptions.ugcCard.svgMask)||void 0===S?void 0:S.cardMask)}")`:null},E=null;return E=null===(C=r.svgMask)||void 0===C?void 0:C.overlayMask,null!=E&&Array.isArray(E)&&E.forEach(((e,t)=>A[`--storiesListCardOverlay${t}Mask`]=e.mask?`url("data:image/svg+xml,${gn(e.mask)}")`:null)),E=null===(k=r.opened.svgMask)||void 0===k?void 0:k.overlayMask,null!=E&&Array.isArray(E)&&E.forEach(((e,t)=>A[`--storiesListCardOpenedOverlay${t}Mask`]=e.mask?`url("data:image/svg+xml,${gn(e.mask)}")`:null)),E=null===(O=e.sliderOptions.favoriteCard.svgMask)||void 0===O?void 0:O.overlayMask,null!=E&&Array.isArray(E)&&E.forEach(((e,t)=>A[`--storiesListCardFavoriteOverlay${t}Mask`]=e.mask?`url("data:image/svg+xml,${gn(e.mask)}")`:null)),E=null===(L=e.sliderOptions.ugcCard.svgMask)||void 0===L?void 0:L.overlayMask,null!=E&&Array.isArray(E)&&E.forEach(((e,t)=>A[`--storiesListCardUgcOverlay${t}Mask`]=e.mask?`url("data:image/svg+xml,${gn(e.mask)}")`:null)),A})()),e.style),children:e.children})})),yn=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&-1==navigator.userAgent.indexOf("CriOS")&&-1==navigator.userAgent.indexOf("FxiOS"),_n=({videoCoverSrc:e,onVideoCoverLoaded:t})=>{const r=(0,K.useRef)(null);return(0,K.useEffect)((()=>{(()=>{if(!e)return;const i=r.current,n=()=>{i.play().then((()=>{if(yn){let e=1;const r=()=>{e>=2&&(i.removeEventListener("timeupdate",r),i.currentTime=0,t()),e++};i.addEventListener("timeupdate",r,!1)}else t()})).catch((e=>{console.error(e)})),i.removeEventListener("canplaythrough",n)};i.addEventListener("canplaythrough",n),i.load()})()}),[]),Ot("video",{ref:r,src:e,loop:!0,muted:!0,playsInline:!0,"webkit-playsinline":"true",preload:"auto"})};var bn,wn,Sn,Cn,kn=__webpack_require__(3373),On=__webpack_require__.n(kn);!function(e){e.LEFT="left",e.RIGHT="right"}(bn||(bn={})),function(e){e.FLAT="flat",e.COVER="cover",e.CUBE="cube"}(wn||(wn={})),function(e){e.CIRCLE="circle",e.QUAD="quad",e.RECTANGLE="rectangle"}(Sn||(Sn={})),function(e){e.STYLE_CIRCLE="circle",e.STYLE_QUAD="quad",e.STYLE_RECTANGLE="rectangle",e.SWIPE_CUBE="cube",e.SWIPE_FLAT="flat",e.SWIPE_COVER="cover",e.CLOSE_BUTTON_LEFT="left",e.CLOSE_BUTTON_RIGHT="right"}(Cn||(Cn={}));bn.RIGHT,wn.FLAT,Sn.CIRCLE,Sn.CIRCLE;var Ln=__webpack_require__(2591),xn=__webpack_require__.n(Ln),An=__webpack_require__(4430),En={insert:"head",singleton:!1};xn()(An.A,En);const Mn=An.A.locals||{},Tn=({storyListViewModel:e})=>{const t=e.cardOptions.variant,r=({src:e,color:t})=>{const r={};return e?r.backgroundImage=`url('${e}')`:r.backgroundColor=t,r};return Ot("div",{className:Mn["favorite-images-wrapper"],children:e.favoriteStoryImages.map(((e,i)=>Ot("div",{className:Mn["favorite-image-wrapper"],children:Ot("div",{style:{paddingTop:t===Cn.STYLE_RECTANGLE?"125%":"100%"},className:On()(Mn["favorite-image"],{[Mn.circle_style]:t===Cn.STYLE_CIRCLE}),children:Ot("div",{className:Mn["favorite-image-item"],style:r(e)})})},i)))})},Rn=({story:e,storyListViewModel:t})=>{const r=t.cardOptions,i=t.options.favoriteCard,n=t.options.ugcCard,o=(e,t)=>null!=t&&Array.isArray(t)?t.map(((t,r)=>s(t,e,r))):[],s=(e,t,r)=>({maskImage:`var(--${t}${r}Mask)`,WebKitMaskImage:`var(--${t}${r}Mask)`,background:e.background});return{getAllCardsOverlayMaskStyles:()=>{let t=[];var s;return e.favorite_cell&&(t=t.concat(o("storiesListCardFavoriteOverlay",null===(s=i.svgMask)||void 0===s?void 0:s.overlayMask))),t=e.ugc_card_cell?t.concat((()=>{var e;return o("storiesListCardUgcOverlay",null===(e=n.svgMask)||void 0===e?void 0:e.overlayMask)})()):e.isOpened?t.concat((()=>{var e;return o("storiesListCardOpenedOverlay",null===(e=r.opened.svgMask)||void 0===e?void 0:e.overlayMask)})()):t.concat((()=>{var e;return o("storiesListCardOverlay",null===(e=r.svgMask)||void 0===e?void 0:e.overlayMask)})()),t}}};var In=__webpack_require__(2015),Pn={insert:"head",singleton:!1};xn()(In.A,Pn);const Fn=In.A.locals||{},jn=({index:e,isScrolling:t,wrapperStyle:r,story:i,storyListViewModel:n})=>{const s={story:i,storyListViewModel:n},[a,l]=(0,K.useState)(!1),{getAllCardsOverlayMaskStyles:d}=Rn(s),{getCardTitleAlignClass:c,getTitleStyle:u,getTitleWrapperStyle:p}=(({story:e,storyListViewModel:t})=>{const r=t.cardOptions,i=t.options.favoriteCard,n=t.options.ugcCard;return{getCardTitleAlignClass:()=>({[Fn["align-left"]]:r.title.textAlign===o.LEFT,[Fn["align-center"]]:r.title.textAlign===o.CENTER,[Fn["align-right"]]:r.title.textAlign===o.RIGHT}),getTitleStyle:()=>{let i={};return e.title_color&&t.isTitleCardInner&&Object.assign(i,{color:e.title_color}),i.WebkitLineClamp=String(parseInt(r.title.lineClamp)),i},getTitleWrapperStyle:()=>{let t={};return e.title_color&&e.favorite_cell&&(t=Object.assign(Object.assign({},t),{color:i.title.color})),e.title_color&&e.ugc_card_cell&&(t=Object.assign(Object.assign({},t),{color:n.title.color})),t}}})(s),{getSlideClassList:f,getSlideStyleList:h,getSlideWrapperStyle:g}=(({story:e,storyListViewModel:t})=>{const r=t.cardAspectRatio,i=t.cardOptions,n=t.options.favoriteCard,o=t.options.ugcCard;return{getSlideClassList:()=>{var t,r,s,a,l,d,c,u,p,f;const h=e.background;let g="";void 0!==h&&(g=Fn[`_background-color-${h.color}`+(!0===h.gradient?"-gradient":"")]);let v=!1,m=!1,y=!1;return e.favorite_cell?(v=Boolean(n.dropShadow),m=null!=(null===(t=n.svgMask)||void 0===t?void 0:t.cardMask),y=null!=(null===(r=n.border)||void 0===r?void 0:r.gradient)):e.ugc_card_cell?(v=Boolean(o.dropShadow),m=null!=(null===(s=o.svgMask)||void 0===s?void 0:s.cardMask),y=null!=(null===(a=o.border)||void 0===a?void 0:a.gradient)):e.isOpened?(v=Boolean(null!=i.opened.dropShadow?i.opened.dropShadow:i.dropShadow),m=null!=(null===(l=i.opened.svgMask)||void 0===l?void 0:l.cardMask),y=Boolean(null!=(null===(d=i.opened.border)||void 0===d?void 0:d.gradient)?null===(c=i.opened.border)||void 0===c?void 0:c.gradient:null===(u=i.border)||void 0===u?void 0:u.gradient)):(v=Boolean(i.dropShadow),m=null!=(null===(p=i.svgMask)||void 0===p?void 0:p.cardMask),y=null!=(null===(f=i.border)||void 0===f?void 0:f.gradient)),[Fn.backgroundClass,{[Fn["_is-read"]]:e.isOpened},{[Fn["_format-rectangle"]]:i.variant===Cn.STYLE_RECTANGLE},{[Fn["_format-circle"]]:i.variant===Cn.STYLE_CIRCLE},{[Fn["_format-quad"]]:i.variant===Cn.STYLE_QUAD},{[Fn["_favorite-cell"]]:e.favorite_cell},{[Fn["_ugc-cell"]]:e.ugc_card_cell},{[Fn["_has-drop-shadow"]]:v},{[Fn["_has-card-svg-mask"]]:m},{[Fn["_has-border-gradient-color"]]:y}]},getSlideStyleList:()=>{let t={width:"0px",opacity:1,boxShadow:"unset",height:`${i.height}px`};return t.width=r*i.height+"px",null!==i.boxShadow&&(t.boxShadow=i.boxShadow),null!==i.opacity&&(t.opacity=i.opacity),e.isOpened&&(null!==i.opened.boxShadow&&(t.boxShadow=i.opened.boxShadow),null!==i.opened.opacity&&(t.opacity=i.opened.opacity)),t},getSlideWrapperStyle:()=>{let e={};return e.width=r*i.height+"px",e}}})(s),v=n.getImageSrcByStory(i);return Lt("a",{"data-id":i.id,className:On()(Fn["stories-slide-wrapper"],{[Fn.isTitleCardOutsideTop]:n.isTitleCardOutsideTop,[Fn.isTitleCardOutsideBottom]:n.isTitleCardOutsideBottom}),style:Object.assign(Object.assign({},g()),r),rel:"noreferrer",onClick:r=>{t||(r.stopPropagation(),r.preventDefault(),n.onStoryClick(i,e))},children:[n.cardOptions.title.display&&n.isTitleCardOutsideTop&&Ot("div",{className:On()(Fn["stories-slide__content"],Fn[" __position_outside_top"]),style:p(),children:Ot("div",{className:On()(Fn["stories-slide__title clamp"],c()),style:u(),children:i.title})}),Lt("div",{className:On()(Fn["stories-slide"],f()),style:h(),children:[Lt("div",{className:Fn["stories-slide__inner"],children:[Ot("div",{className:Fn["stories-slide-image"],style:{backgroundColor:i.background_color?i.background_color:"transparent"},children:Ot("div",{className:Fn["stories-slide-image__wrap"],children:Lt("div",{className:On()(Fn["stories-slide-image__image"],Fn._mode_list,{[Fn["video-loaded"]]:a,[Fn["ugc-card-cell"]]:i.ugc_card_cell}),children:[v&&Ot("img",{src:v,alt:i.title,loading:n.cardOptions.coverLazyLoading?"lazy":"eager"}),i.videoCoverSrc&&Ot(_n,{onVideoCoverLoaded:()=>l(!0),videoCoverSrc:i.videoCoverSrc}),i.favorite_cell&&Ot(Tn,{storyListViewModel:n})]})})}),Ot("div",{className:Fn["stories-slide__mask"]}),n.cardOptions.title.display&&n.isTitleCardInner&&Ot("div",{className:Fn["stories-slide__content"],style:p(),children:Ot("div",{className:On()(Fn["stories-slide__title clamp"],c()),style:u(),children:i.title})})]}),d().map(((e,t)=>Ot("div",{style:e,className:Fn["card-overlay-svg-mask"]},t)))]}),n.cardOptions.title.display&&n.isTitleCardOutsideBottom&&Ot("div",{className:On()(Fn["stories-slide__content"],Fn.__position_outside_bottom),style:p(),children:Ot("div",{className:On()(Fn["stories-slide__title clamp"],c()),style:u(),children:i.title})})]})};var Dn=__webpack_require__(2784),Bn=__webpack_require__.n(Dn);const Nn={addEventListeners(e,t,r){for(var i=0,n=t.length;i<n;i++)e.addEventListener(t[i],r,{passive:!1})},removeEventListeners(e,t,r){for(var i=0,n=t.length;i<n;i++)e.removeEventListener(t[i],r,{passive:!1})},emitEvent:function(e,t,r){if(e.componentInstance)e.componentInstance.$emit(t,r);else{let i;"function"==typeof window.CustomEvent?i=new window.CustomEvent(t,{detail:r}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(t,!0,!0,r)),e.elm.dispatchEvent(i)}},addOnceEventListener:function(e,t,r,i){var n=o=>{r(o),e.removeEventListener(t,n,i)};e.addEventListener(t,n,i)}},Un=Nn,Wn=["mousedown","touchstart"],$n=["mousemove","touchmove"],Gn=["mouseup","touchend"],qn=["scroll"];var zn;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(zn||(zn={}));class Hn extends t.EventEmitter{get slides(){return Array.from(this.slider.children)}get elementRef(){return this.slider}get reachBeginning(){return this._reachBeginning}get reachEnd(){return this._reachEnd}get scrollWidth(){return this.slider.scrollWidth}constructor(){super(),this.isScrolling=!1,this.isDragging=!1,this.currentPosition={x:0,y:0},this.direction=zn.Horizontal,this.gap=20,this.rafId=0,this.lastClientX=0,this.lastClientY=0,this.pushed=!1,this.startClientX=0,this.startClientY=0,this._reachBeginning=!0,this._reachEnd=!1,this.desktopMode=!0,this.handleNativeScrollEnd=Bn()((function(){this.emit("scrollend",this.currentPosition),this.isScrolling=!1}),300,{leading:!1}),this.handleNativeScroll=this.handleNativeScroll.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this)}mount(e){this.slider=e,Un.addEventListeners(this.slider,Wn,this.handleMouseDown),Un.addEventListeners(this.slider,qn,this.handleNativeScroll)}destroy(){this.removeAllListeners(),Un.removeEventListeners(this.slider,Wn,this.handleMouseDown),Un.removeEventListeners(window,Gn,this.handleMouseUp),Un.removeEventListeners(window,$n,this.handleMouseMove),Un.removeEventListeners(this.slider,qn,this.handleNativeScroll)}getLength(){var e,t;return null!==(t=null===(e=this.slider)||void 0===e?void 0:e.children.length)&&void 0!==t?t:0}getTranslate(){return this.direction===zn.Horizontal?this.currentPosition.x:this.currentPosition.y}getCurrentPosition(){return this.currentPosition}changeDirection(e){this.direction=e}setGap(e){this.gap=e}setDesktopMode(e){this.desktopMode=e}getGap(){return this.gap}scrollTo(e,t=300){const r=this.preparePosition(e,e);cancelAnimationFrame(this.rafId),t>0?this.scrollWithAnimation(r.x,r.y,t):(this.scrollToImmediately(r.x,r.y),this.emit("scrollend",this.currentPosition))}getSlidesPerView(){if(this.direction===zn.Horizontal&&this.slider.clientWidth){const e=this.slider.children[0].clientWidth+this.gap;return Math.round(this.slider.clientWidth/e)}if(this.direction===zn.Vertical&&this.slider.clientHeight){const e=this.slider.children[0].clientHeight+this.gap;return Math.round(this.slider.clientHeight/e)}return 1}handleMouseDown(e){if(!this.desktopMode)return;const t=e instanceof window.MouseEvent;this.pushed=!0,this.lastClientX=t?e.clientX:e.touches[0].clientX,this.lastClientY=t?e.clientY:e.touches[0].clientY,this.startClientX=this.lastClientX,this.startClientY=this.lastClientY,Un.addEventListeners(window,Gn,this.handleMouseUp),Un.addEventListeners(window,$n,this.handleMouseMove)}handleMouseUp(){this.pushed&&(this.pushed=!1,this.isDragging=!1,this.emit("scrollend",this.currentPosition),Un.removeEventListeners(window,Gn,this.handleMouseUp),Un.removeEventListeners(window,$n,this.handleMouseMove))}handleMouseMove(e){if(e.preventDefault(),!this.pushed)return;const t=e instanceof window.MouseEvent;let r,i;r=-this.lastClientX+(this.lastClientX=t?e.clientX:e.touches[0].clientX),i=-this.lastClientY+(this.lastClientY=t?e.clientY:e.touches[0].clientY);const n=Math.abs(this.startClientX-this.lastClientX),o=Math.abs(this.startClientY-this.lastClientY);!this.isDragging&&(n>=1||o>=1)&&(this.emit("scrollstart",this.currentPosition),this.isDragging=!0);const{x:s,y:a}=this.preparePosition(this.currentPosition.x-r,this.currentPosition.y-i);this.scrollToImmediately(s,a)}handleNativeScroll(e){this.isDragging||(this.isScrolling||(this.emit("scrollstart",this.currentPosition),this.isScrolling=!0),this.scrollToImmediately(this.slider.scrollLeft,this.slider.scrollTop),this.handleNativeScrollEnd())}scrollToImmediately(e,t){this.currentPosition.x=e,this.currentPosition.y=t,this.slider.scrollLeft=e,this.slider.scrollTop=t,this.testAttraction(),this.emit("scroll",this.currentPosition)}scrollWithAnimation(e=0,t=0,r=0){const i=performance.now(),n=e=>e*e,o=this.getTranslate(),s=e-this.currentPosition.x,a=t-this.currentPosition.y;if(Math.abs(s)<=1&&Math.abs(a)<=1)return;const l=()=>{this.rafId=requestAnimationFrame((d=>{const c=(d-i)/r;if(c>=1)return this.scrollToImmediately(e,t),void this.emit("scrollend",this.currentPosition);const u=n(c)*s+o,p=n(c)*a+o;this.scrollToImmediately(u,p),l()}))};l()}preparePosition(e,t){let r={x:e,y:t};return this.direction===zn.Horizontal?r.y=0:r.x=0,r=this.attractToBounds(r.x,r.y),r}attractToBounds(e,t){const r={x:e,y:t};return r.x=this.attractToBoundsByX(e),r.y=this.attractToBoundsByY(t),r}attractToBoundsByX(e){let t=e;return t<=0&&(t=0),t+this.slider.clientWidth>=this.slider.scrollWidth&&(t=this.slider.scrollWidth-this.slider.clientWidth),t}attractToBoundsByY(e){let t=e;return t<=0&&(t=0),t+this.slider.clientHeight>=this.slider.scrollHeight&&(t=this.slider.scrollHeight-this.slider.clientHeight),t}testAttraction(){this._reachBeginning=!1,this._reachEnd=!1,this.direction===zn.Horizontal?(0===this.currentPosition.x&&(this._reachBeginning=!0),this.currentPosition.x+this.slider.clientWidth>=this.slider.scrollWidth&&(this._reachEnd=!0)):(0===this.currentPosition.y&&(this._reachBeginning=!0),this.currentPosition.y+this.slider.clientHeight>=this.slider.scrollHeight&&(this._reachEnd=!0))}}var Vn=__webpack_require__(4037),Yn={insert:"head",singleton:!1};xn()(Vn.A,Yn);const Kn=Vn.A.locals||{},Qn=({sliderDirection:e,slider:t})=>{const[r,i]=(0,K.useState)(!0),[n,o]=(0,K.useState)(!1);(0,K.useEffect)((()=>(t.addListener("scroll",s),()=>{t.removeListener("scroll",s)})),[t]);const s=()=>{i(t.reachBeginning),o(t.reachEnd)},a=r=>{var i,n;const o=t.getSlidesPerView(),s=t.getTranslate(),a=(null===(i=t.slides[0])||void 0===i?void 0:i.clientWidth)+t.getGap(),l=(null===(n=t.slides[0])||void 0===n?void 0:n.clientHeight)+t.getGap(),d=s+r*o*(e===zn.Horizontal?a:l);t.scrollTo(d,300)};return Ot("div",{className:Kn["stories-list-controls"],children:e===zn.Horizontal?Lt(kt,{children:[Ot("div",{onClick:()=>a(-1),className:On()(Kn.control,Kn["control-left"],{[Kn.active]:r}),children:Ot("div",{className:Kn["control-icon"]})}),Ot("div",{onClick:()=>a(1),className:On()(Kn.control,Kn["control-right"],{[Kn.active]:n}),children:Ot("div",{className:Kn["control-icon"]})})]}):Lt(kt,{children:[Ot("div",{onClick:()=>a(-1),className:On()(Kn.control,Kn["control-top"],{active:r}),children:Ot("div",{className:Kn["control-icon"]})}),Ot("div",{onClick:()=>a(1),className:On()(Kn.control,Kn["control-bottom"],{active:n}),children:Ot("div",{className:Kn["control-icon"]})})]})})},Xn=e=>{const[t,r]=(0,K.useState)(!1),[i,n]=(0,K.useState)(null),{ref:o}=(e=>{const t=(0,K.useRef)(null);return(0,K.useEffect)((()=>{if(!t.current)return;const r=new Hn;return r.mount(t.current),e(r),()=>{r.destroy()}}),[]),{ref:t}})((e=>{n(e),e.addListener("scrollstart",(()=>r(!0))),e.addListener("scrollend",(()=>setTimeout((()=>r(!1)),100)))}));return(0,K.useEffect)((()=>{i&&(i.setGap(e.options.card.gap),i.setDesktopMode(e.modeDesktop),i.changeDirection(e.options.direction))}),[i,e.options.card.gap,e.modeDesktop,e.options.direction]),{sliderRef:o,slider:i,isScrolling:t}};var Jn=__webpack_require__(6599),Zn={insert:"head",singleton:!1};xn()(Jn.A,Zn);const eo=Jn.A.locals||{};class to{constructor(e=0,t=0,r=0,i=0){this.x=e,this.y=t,this.width=r,this.height=i}overlaps(e){return this.x+this.width>=e.x&&this.x<=e.x+e.width&&this.y+this.height>=e.y&&this.y<=e.y+e.height}getIntersection(e){const t=Math.min(this.x+this.width,e.x+e.width),r=Math.max(this.x,e.x),i=Math.min(this.y+this.height,e.y+e.height),n=Math.max(this.y,e.y);return new to(Math.min(t,r),Math.min(i,n),Math.max(0,t-r),Math.max(0,i-n))}getArea(){return this.width*this.height}getAreaFraction(e){return+(this.getArea()/e.getArea()*100).toFixed(2)}static clone(e){return new to(e.x,e.y,e.width,e.height)}}class ro extends t.EventEmitter{calculate(e){const t=e.map((({id:e,areaFraction:t})=>({storyId:e,visibleArea:Math.round(t)/100})));0!==t.length&&this.emit("visibleAreaUpdated",t)}}class io extends t.EventEmitter{constructor(){super(...arguments),this.storiesIds=new Set,this.getNewStoriesIds=e=>{const t=[];for(const r of e)this.storiesIds.has(r)||t.push(r);return t}}markStoryAsFullVisible(e){this.storiesIds.has(e)||(this.storiesIds.add(e),this.emit("flushThumbViews",[e]))}calculate(e){const t=this.getNewStoriesIds(e.map((({id:e})=>e)));t.forEach((e=>this.storiesIds.add(e))),0!==t.length&&this.emit("flushThumbViews",t)}}class no extends t.EventEmitter{constructor(){super(),this.storyRects=[],this.viewport=new to,this.feedImpressionMetric=new io,this.visibleAreaMetric=new ro,this.filterStoryRectIntersections=e=>e.filter((e=>-100!==e.id&&e.areaFraction>0)),this.feedImpressionMetric.on("flushThumbViews",(e=>this.emit("flushThumbViews",e))),this.visibleAreaMetric.on("visibleAreaUpdated",(e=>this.emit("visibleAreaUpdated",e)))}calculate(e){const t=this.getScrollViewportByCalculationParams(e),r=this.getStoryRectIntersectionsWithViewport(t),i=this.filterStoryRectIntersections(r);this.calculateMetrics(i)}setViewport(e){this.viewport=e}setStoryRects(e){this.storyRects=e}markStoryAsFullVisible(e){this.feedImpressionMetric.markStoryAsFullVisible(e)}destroy(){this.removeAllListeners()}getScrollViewportByCalculationParams(e){const t=to.clone(this.viewport);return t.x+=e.minOffsetLeft,t.y+=e.minOffsetTop,t.width+=e.maxOffsetLeft-e.minOffsetLeft,t.height+=e.maxOffsetTop-e.minOffsetTop,t}calculateMetrics(e){this.feedImpressionMetric.calculate(e),this.visibleAreaMetric.calculate(e)}getStoryRectIntersectionsWithViewport(e){const t=[];for(const r of this.storyRects)if(r.overlaps(e)){const i=r.getIntersection(e);t.push({id:r.id,areaFraction:i.getAreaFraction(r)})}else t.push({id:r.id,areaFraction:0});return t}}class oo extends to{constructor(e,t=0,r=0,i=0,n=0){super(t,r,i,n),this.id=e}static clone(e){return new oo(e.id,e.x,e.y,e.width,e.height)}}let so=0,ao=0,lo=0,co=0;const uo=(e,t,r)=>{(0,K.useEffect)((()=>{if(e)return t.on("closeStory",i),()=>{t.off("closeStory",i)}}),[e]);const i=i=>{if(!e)return;const n=e.slides.find((e=>Number(e.dataset.id)===i));if(!n||((e,t)=>{const i=new to(t.offsetLeft,t.offsetTop,t.clientWidth,t.clientHeight),{x:n,y:o}=e.getCurrentPosition(),s=r.current.getBoundingClientRect(),a=new to(s.x+n,s.y+o,s.width,s.height);return i.overlaps(a)})(e,n))return;const o="horizontal"===t.options.direction?n.offsetLeft:n.offsetTop;e.scrollTo(o)}},po=(0,K.forwardRef)((({viewModel:e,feedCoverageAnalytics:t},r)=>{const n=(0,K.useRef)(null),{sliderRef:o,slider:s,isScrolling:a}=Xn(e);((e,t,r)=>{(0,K.useEffect)((()=>{if(!t)return;t.addListener("scrollstart",o),t.addListener("scrollend",s);const e=Bn()(i,600,{leading:!1});return window.addEventListener("scroll",e),window.addEventListener("resize",e),()=>{null==t||t.removeListener("scrollstart",o),null==t||t.removeListener("scrollend",s),window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}}),[t]),(0,K.useEffect)((()=>{i()}),[r.options.direction,r.options.card.aspectRatio,r.options.card.height,r.session]);const i=()=>{if(!t)return;const r=t.elementRef.getBoundingClientRect(),{x:i,y:o}=t.getCurrentPosition();n(r),e.calculate({minOffsetLeft:i,maxOffsetLeft:i,minOffsetTop:o,maxOffsetTop:o})};(0,K.useEffect)((()=>{const t=t=>e.markStoryAsFullVisible(t);return r.on("openStory",t),()=>{r.off("openStory",t)}}),[r]);const n=e=>{const{left:t,top:r,width:i,height:n}=e,o=new to(t,r,i,n);a(o),d(o)},o=({x:e,y:t})=>{so=e,lo=t,ao=0,co=0},s=({x:t,y:r})=>{so=Math.min(t,so),ao=Math.max(t,ao),lo=Math.min(r,lo),co=Math.max(r,co),e.calculate({minOffsetLeft:so,maxOffsetLeft:ao,minOffsetTop:lo,maxOffsetTop:co})},a=t=>{const r=new to(0,0,window.parent.innerWidth,window.parent.innerHeight),i=l(r,t);c(i,t),e.setViewport(i)},l=(e,t)=>{let r=new to;return t.overlaps(e)?(r=t.getIntersection(e),r):r},d=r=>{if(!t)return;const i=t.slides,n=[];i.forEach(((e,t)=>{const o=Number(e.dataset.id),s=new oo(o,e.offsetLeft,e.offsetTop,e.clientWidth,e.clientHeight);n.push(s),s.x+=r.x,s.y+=r.y,p(s,t,i.length-1)})),e.setStoryRects(n)},c=(e,t)=>{if(t.width<768)return;const r=u();e.x+=r.left,e.y+=r.top,e.height-=r.top+r.bottom,e.width-=r.left+r.right},u=()=>{const e=r.options.sidePadding,t={left:e,right:e,top:r.options.topPadding,bottom:r.options.bottomPadding};return"vertical"===r.options.direction&&(t.left=0,t.right=0),t},p=(e,t,r)=>{const i=u();e.x+=i.left,0===t&&(e.x+=i.left,e.width-=i.left),t===r&&(e.width-=i.right)}})(t,s,e),((e,t,r)=>{(0,K.useEffect)((()=>{e&&t.modeDesktop&&n(e,r.current)}),[e,t.modeDesktop]);const n=(e,r)=>{if(t.options.layout.sliderAlign!==i.CENTER)return;let n=e.scrollWidth;if(n>0&&n<r.clientWidth){let t=r.clientWidth-n/2;e.scrollTo(t)}}})(s,e,n),uo(s,e,n);const{getRootStyle:l,getStoryWrapperStyle:d,viewportInnerClassList:c,viewportInnerStyle:u}=(e=>({getRootStyle:()=>({"--background-color":e.options.layout.backgroundColor,paddingLeft:e.options.sidePadding+"px",paddingRight:e.options.sidePadding+"px","--storiesListTopPadding":e.options.topPadding+"px","--storiesListBottomPadding":e.options.bottomPadding+"px","--storiesListSidePadding":e.options.sidePadding+"px",backgroundColor:e.options.layout.backgroundColor}),getStoryWrapperStyle:t=>{let r={marginRight:"0",paddingLeft:"0",paddingRight:"0"};return"vertical"===e.options.direction||(t!==e.stories.length-1?r.marginRight=e.options.card.gap+"px":r.paddingRight=e.options.sidePadding+"px",0===t&&(r.paddingLeft=e.options.sidePadding+"px")),r},viewportInnerClassList:e.modeDesktop?On()(eo["stories-list__viewport-inner"],eo["mode-desktop"],{[eo["with-list-controls"]]:e.options.navigation.showControls,[eo.isTitleCardOutsideTop]:e.isTitleCardOutsideTop,[eo.isTitleCardOutsideBottom]:e.isTitleCardOutsideBottom,[eo.isVerticalDirection]:"vertical"===e.options.direction}):On()(eo["stories-list__viewport-inner"],Object.assign(Object.assign({},{[eo["align-left"]]:e.options.layout.sliderAlign===i.LEFT,[eo["align-center"]]:e.options.layout.sliderAlign===i.CENTER,[eo["align-right"]]:e.options.layout.sliderAlign===i.RIGHT}),{[eo.isTitleCardOutsideTop]:e.isTitleCardOutsideTop,[eo.isTitleCardOutsideBottom]:e.isTitleCardOutsideBottom})),viewportInnerStyle:e.modeDesktop?{height:`${e.options.layout.storiesListInnerHeight}px`,gap:"vertical"===e.options.direction?`${e.options.card.gap}px`:0}:{height:`${e.options.layout.storiesListInnerHeight}px`}}))(e);return Lt(mn,{className:On()(eo["stories-list-wrapper"],{[eo["mode-desktop"]]:e.modeDesktop,[eo["with-list-controls"]]:e.options.navigation.showControls}),ref:r,style:l(),sliderOptions:e.options,children:[Ot("div",{className:eo["stories-list"],children:Ot("div",{ref:n,className:On()(eo["stories-list__viewport"],{[eo["mode-desktop"]]:e.modeDesktop}),style:"horizontal"===e.options.direction?{marginLeft:-e.options.sidePadding+"px",marginRight:-e.options.sidePadding+"px"}:{},children:Ot("div",{ref:o,className:c,style:u,children:e.stories.map(((t,r)=>Ot(jn,{story:t,index:r,storyListViewModel:e,wrapperStyle:d(r),isScrolling:a},r)))})})}),s&&Ot(Qn,{sliderDirection:e.options.direction,slider:s})]})}));class fo{constructor(e,t){this.storyManager=e,this.params=t,this.handleFlushThumbViews=this.handleFlushThumbViews.bind(this),this.handleVisibleAreaUpdated=this.handleVisibleAreaUpdated.bind(this)}create(){const e=new no;return e.on("flushThumbViews",this.handleFlushThumbViews),e.on("visibleAreaUpdated",this.handleVisibleAreaUpdated),e}handleFlushThumbViews(e){const t=x.Tl.getState();this.params.listType!==Qr.DEFAULT||t.disableStatistic||Nr(e);const r=this.params.identityFields.feedSlug,i=this.params.identityFields.filter,n=rs(r),o={stories:e.map((e=>{const t={title:null,tags:[],slidesCount:null},r=Zr.getState().find((t=>t.id===e));return r&&(t.title=r.stat_title,t.tags=r.tags,t.slidesCount=r.slides_count,r.type===Qr.UGC&&(t.ugcPayload=R()(r.payload)?r.payload:{})),Object.assign({id:e},t)})),feed:null,filter:null};n===Qr.DEFAULT?o.feed=r:n===Qr.UGC&&(o.filter=i),this.storyManager.emit("feedImpression",o)}handleVisibleAreaUpdated(e){const t=this.params.identityFields.feedSlug,r=this.params.identityFields.filter,i=rs(t),n={stories:e.map((({storyId:e,visibleArea:t})=>{const r={title:null,tags:[],slidesCount:null,visibleArea:t},i=Zr.getState().find((t=>t.id===e));return i&&(r.title=i.stat_title,r.tags=i.tags,r.slidesCount=i.slides_count,i.type===Qr.UGC&&(r.ugcPayload=R()(i.payload)?i.payload:{})),Object.assign({id:e},r)})),feed:null,filter:null};i===Qr.DEFAULT?n.feed=t:i===Qr.UGC&&(n.filter=r),this.storyManager.emit("visibleAreaUpdated",n)}}var ho=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r};const go=e=>{var{viewModelExporter:t,onLoadStart:r,onLoadEnd:i}=e,n=ho(e,["viewModelExporter","onLoadStart","onLoadEnd"]);const o=(0,K.useRef)(null),s=(()=>{const[e,t]=(0,K.useState)(!1);(0,K.useEffect)((()=>(r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)})),[]);const r=()=>{"mobile"===on.parsedResult.platform.type||"tablet"===on.parsedResult.platform.type?t(!1):t(!0)};return e})(),a=(({listType:e,feedSlug:t,testKey:r,storyManager:i,appearanceManager:n,filter:o,useUgcCard:s,ugcCardClickHandler:a})=>{const[,l]=(0,K.useState)(0),[d,c]=(0,K.useState)(null),u=()=>{requestAnimationFrame((()=>l((e=>++e))))};return(0,K.useEffect)((()=>{const l=i.createStoryListViewModel({listType:e,testKey:r,identityFields:{feedSlug:t,filter:o},appearanceManager:n,useUgcCard:s,ugcCardClickHandler:a});return c(l),()=>{l.destroy()}}),[i,r,t,o,n]),(0,K.useEffect)((()=>{if(d)return d.on("update",u),()=>{d.off("update",u)}}),[d]),d})(n),l=(({storyManager:e,listType:t,identityFields:r})=>{const[i,n]=(0,K.useState)(null);return(0,K.useEffect)((()=>{const i=new fo(e,{listType:t,identityFields:r}).create();return n(i),()=>{i.destroy()}}),[r.feedSlug,r.filter]),i})({listType:n.listType,identityFields:{feedSlug:n.feedSlug,filter:n.filter},storyManager:n.storyManager}),{updateStoryListOptions:d}={updateStoryListOptions:(e,t)=>{const r=new pn(e,t.card.title),i=new fn(t),{storiesListHeight:n,storiesListInnerHeight:o}=i.getStoriesListStyleOptions(r.getStoryTitleBlockHeight()),s=r.getCardTitleFont();s.fontSize=r.getScaledFontSizeInWebView(),t.card.title.font=s.toString(),t.layout.storiesListInnerHeight=n}},c=()=>{null==r||r()},u=e=>{null==i||i(e)};(0,K.useEffect)((()=>{a&&(a.modeDesktop=s)}),[s,a]),(0,K.useEffect)((()=>{if(a)return null==t||t(a),a.on("startLoading",c),a.on("endLoading",u),()=>{a.off("startLoading",c),a.off("endLoading",u)}}),[a]);const p=e=>{const t=o.current;d(t,e),null==a||a.setOptions(e)};return(0,K.useEffect)((()=>{if(a&&l)return p(n.appearanceManager.storiesListOptions),n.appearanceManager.on(_.EVENT_UPDATED_STORIES_LIST_OPTIONS,p),()=>{n.appearanceManager.off(_.EVENT_UPDATED_STORIES_LIST_OPTIONS,p)}}),[n.appearanceManager,a,l]),l&&a?Ot(po,{ref:o,viewModel:a,feedCoverageAnalytics:l}):null},vo=e=>Ot(go,{listType:Qr.DEFAULT,testKey:e.testKey,storyManager:e.storyManager,appearanceManager:e.appearanceManager,feedSlug:e.feedSlug,useUgcCard:Boolean(e.useUgcCard),ugcCardClickHandler:e.ugcCardClickHandler,viewModelExporter:e.viewModelExporter,onLoadStart:e.onLoadStart,onLoadEnd:e.onLoadEnd}),mo=e=>{const t=ts;return Ot(go,{listType:Qr.DEFAULT,testKey:e.testKey,storyManager:e.storyManager,appearanceManager:e.appearanceManager,feedSlug:t,filter:e.filter,useUgcCard:Boolean(e.useUgcCard),ugcCardClickHandler:e.ugcCardClickHandler,viewModelExporter:e.viewModelExporter,onLoadStart:e.onLoadStart,onLoadEnd:e.onLoadEnd})};class yo extends t.EventEmitter{destroy(){}}let _o;_o=function(){};class bo{constructor(){this.__lastUpdated=null,this._receiveTime=0,this._serverTimestamp=0,this.rawData={},this.myDictionary={}}get receiveTime(){return this._receiveTime}singleModelWrapper(){return""}attributes(){return["__lastUpdated"]}static prepareFromResponse(){}setAttributes(e){const t=this.attributes();let r=this;for(let i in e){let n=e[i];-1!==t.indexOf(i)&&(r[i]=n)}}static createInstance(e,t){const r=new e;let i=t;return""!==r.singleModelWrapper()&&void 0!==t[r.singleModelWrapper()]&&(i=t[r.singleModelWrapper()]),r.rawData=t,r.setAttributes(i),r._receiveTime=(new Date).getTime(),void 0!==t.server_timestamp&&(r._serverTimestamp=t.server_timestamp),r}static _fetch(e,t,r,i="get"){return new Promise(((e,t)=>{e({})}))}static _fetchList(e,t,r){return Promise.resolve({})}static emitEvent({type:e,event:t,eventData:r}){return Promise.resolve()}static update(e,t,r="post"){return Promise.resolve()}}class wo extends bo{attributes(){return["width","height","type","url"]}constructor(){super(),this._url=""}set url(e){this._url=e}get url(){let e=window.isSecureContext;return void 0===e&&"https:"===window.location.protocol&&(e=!0),e?this._url:this._url.replace(/^https:\/\//,"http://")}}const So=__webpack_require__(3981);class Co{constructor(){this.images=[],this.color="",this.gradient=!1}static createFromArray(e){const t=new Co;for(let r in e)e.hasOwnProperty(r)&&t.images.push(wo.createInstance(wo,e[r]));return t}findOneByType(e){var t;return null!==(t=this.images.find((t=>t.type===e)))&&void 0!==t?t:null}findOneByCoverQuality(e){return this.findOneByType(this.mapCoverQualityToImageType(e))}findOneByWidth(e,t=!1){let r=null;return this.images.forEach((t=>{t.width===e&&(r=t)})),null!==r||t&&void 0!==(r=So(this.images))?r:null}mapCoverQualityToImageType(e){switch(e){case a.Medium:return"m";case a.High:return"h"}}}var ko=__webpack_require__(4871),Oo=__webpack_require__.n(ko);class Lo extends bo{constructor(){super(...arguments),this._title="",this.title_color="",this.magazine_name="",this.is_opened=!1,this._slides_html=[],this.slides_duration=[],this.slides_screenshot_share=[],this.source="",this.favorite=!1,this.like=0,this.slides_count=null,this.deeplink=null,this.hide_in_reader=null,this.blank=!1,this.disable_close=!1,this.need_placeholders=null,this._placeholders={},this.favorite_cell=!1,this.ugc_card_cell=!1,this.slidesLoaded=!1,this._imageSrc=null,this._parsedIssueArticleIds=null,this._parsedArticleIds=null,this._parsedSlideImage=null,this._video_cover=null,this._videoCoverSrc=null}static fetch(e,t){return this.placeholders=t,this._fetch(Lo,`story/${e}`,{expand:"slides_html,slides_duration"})}static fetchList(e,t,r){this.placeholders=e;const i={tags:t};return void 0!==r&&(i.favorite=Number(r)),this._fetchList(Lo,"story",i)}static fetchWithSlides(e,t){return this.placeholders=t,Promise.all(e.map((e=>this.fetch(e,t))))}static fetchOnboardingList(e,t){return this.placeholders=e,this._fetchList(Lo,"story-onboarding",{tags:t})}static fetchOnboardingListWithSlides(e,t){return this.placeholders=t,Promise.all(e.map((e=>this.fetch(e,t))))}attributes(){return Oo()(super.attributes(),["title","title_color","source","magazine_name","background","background_color","id","image","display_to","display_from","slides_html","slides_duration","slides_screenshot_share","favorite","like","slides_count","deeplink","hide_in_reader","disable_close","like_functional","favorite_functional","share_functional","is_opened","tags","has_audio","has_placeholder","video_cover","need_placeholders","has_swipe_up","share_url","game_instance","slidesLoaded"])}set image(e){this._image=Co.createFromArray(e)}get image(){return this._image}get issueArticleIds(){return this.parseHtmlSlidesForLinks(),null!==this._parsedIssueArticleIds?this._parsedIssueArticleIds:[]}get articleIds(){return this.parseHtmlSlidesForLinks(),null!==this._parsedArticleIds?this._parsedArticleIds:[]}imagePerSlide(e){return this.parseHtmlSlidesForMainImage(),null!==this._parsedSlideImage&&void 0!==this._parsedSlideImage[e]?this._parsedSlideImage[e]:null}parseHtmlSlidesForLinks(){null===this._parsedArticleIds&&null===this._parsedIssueArticleIds&&this.slides_html.forEach((e=>{const t=e.match(/<[^<]*narrative-element-link.*data-link-type="([a-z-]*)".*data-link-target="(\d+)"[^<]*>/i);if(null!==t){const e=t[1],r=parseInt(t[2]);"article"===e?(null===this._parsedArticleIds&&(this._parsedArticleIds=[]),-1===this._parsedArticleIds.indexOf(r)&&this._parsedArticleIds.push(r)):"issue-article"===e&&(null===this._parsedIssueArticleIds&&(this._parsedIssueArticleIds=[]),-1===this._parsedIssueArticleIds.indexOf(r)&&this._parsedIssueArticleIds.push(r))}}))}parseHtmlSlidesForMainImage(){null===this._parsedSlideImage&&this.slides_html.forEach(((e,t)=>{const r=e.match(/<[^<]*narrative-element-image.*<img[^<]*src="([^"]*)"[^<]*>/i);null!==r&&(null===this._parsedSlideImage&&(this._parsedSlideImage=[]),this._parsedSlideImage[t]=r[1])}))}set video_cover(e){null!==e&&(this._video_cover=Co.createFromArray(e))}get video_cover(){return this._video_cover}get videoCoverSrc(){if(!1===this._videoCoverSrc)return null;if(null===this._videoCoverSrc){const e=this.video_cover;if(null===e)return this._videoCoverSrc=!1,null;const t=e.findOneByType("h");if(null!==t)return t.url}return"string"==typeof this._videoCoverSrc?this._videoCoverSrc:null}get title(){return this._title}set title(e){if(!0===this.need_placeholders||!0===this.rawData.need_placeholders)for(let t in Lo.placeholders)Lo.placeholders.hasOwnProperty(t)&&(e=Oi(e,`%${t}%`,Lo.placeholders[t]));this.rawData.title=e,this._title=e}get slides_html(){return this._slides_html}set slides_html(e){if(!0===this.need_placeholders||!0===this.rawData.need_placeholders)for(let t in Lo.placeholders)if(Lo.placeholders.hasOwnProperty(t))for(let r=0;r<e.length;r++)e[r]=Oi(e[r],`%${t}%`,Lo.placeholders[t]);const t=null!==__webpack_require__.nc&&void 0!==__webpack_require__.nc?__webpack_require__.nc:"";for(let r=0;r<e.length;r++)e[r]=Oi(e[r],"{{nonce}}",null!=t?t:"");this._slides_html=e}get isOpened(){return this.is_opened}set isOpened(e){this.is_opened=e,this.rawData.is_opened=e}}Lo.placeholders={};const xo=Lo;class Ao{static create(e){const t=bo.createInstance(xo,{id:0,title:e.favoriteCard.title.content,title_color:e.favoriteCard.title.color,is_opened:!0,background_color:"white"});return t.favorite_cell=!0,t}}class Eo{static create(e){let t=[];e.ugcCard.image&&e.ugcCard.image.svgSrc&&e.ugcCard.image.svgSrc.baseState&&t.push({width:100,height:100,type:"h",url:`data:image/svg+xml,${gn(e.ugcCard.image.svgSrc.baseState)}`});const r=bo.createInstance(xo,{id:-100,title:e.ugcCard.title.content,title_color:e.ugcCard.title.color,is_opened:!1,background_color:e.ugcCard.backgroundColor,image:t});return r.ugc_card_cell=!0,r}}const Mo=(e,t)=>{let r=[];switch(e){case S.default:r=t?ii.getState()[t]:[];break;case S.favorite:r=oi.getState();break;case S.onboarding:r=t?ni.getState()[t]:[]}return null!=r?r:[]},To=__webpack_require__(4871);var Ro;!function(e){e.FONT="font-face"}(Ro||(Ro={}));class Io extends bo{attributes(){return To(super.attributes(),["weight","style","type","url","title","family","format"])}constructor(){super(),this._url=""}set url(e){this._url=e}get url(){let e=window.isSecureContext;return void 0===e&&"https:"===window.location.protocol&&(e=!0),e?this._url:this._url.replace(/^https:\/\//,"http://")}get isFont(){return this.type===Ro.FONT}get fontFaceAsCss(){var e,t,r;if(!this.isFont)return null;let i={"font-family":null!==(e=this.family)&&void 0!==e?e:"normal",src:`url('${this.url}')`,"font-style":null!==(t=this.style)&&void 0!==t?t:"normal","font-weight":null!==(r=this.weight)&&void 0!==r?r:"normal"};return this.title&&(i.src+=`, local('${this.title}')`),`@font-face {${(0,Et.ky)(i)}}\n`}}__webpack_require__(3981);class Po{constructor(){this.resources=[]}static createFromArray(e){const t=new Po;for(let r in e)e.hasOwnProperty(r)&&t.resources.push(Io.createInstance(Io,e[r]));return t}get fontsCss(){let e="";return this.resources.forEach((t=>{if(t.isFont){let r=t.fontFaceAsCss;null!==r&&(e+=r)}})),e||null}}class Fo extends bo{constructor(){super(),this.id=null,this.expire_in=null,this.closed=!1,this.is_allow_profiling=!1,this.preview_aspect_ratio=1,this._placeholders={}}singleModelWrapper(){return""}attributes(){return Oo()(super.attributes(),["server_timestamp","session","cache","share","user_key","placeholders","is_allow_profiling","preview_aspect_ratio"])}static fetch(e){return this._fetch(Fo,"session/open?expand=cache",e,"post")}static updateSession(e){return this.update("session/update",e)}set session(e){this.id=e.id,this.expire_in=e.expire_in,void 0!==e.closed&&(this.closed=e.closed)}set cache(e){this._projectResourceCache=Po.createFromArray(e)}get cache(){return this._projectResourceCache}set placeholders(e){M()(e)&&e.forEach((e=>{R()(e)&&void 0!==e.name&&void 0!==e.default_value&&(this._placeholders[e.name]=e.default_value)}))}get placeholders(){return this._placeholders}}var jo=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class Do{constructor(e){this.storyManager=e}loadStories({listType:e,identityFields:t,testKey:r,needFavorite:i=!0}){return jo(this,void 0,void 0,(function*(){const n=e===Qr.DEFAULT&&i;yield Ri({defaultList:t,onboardingList:!1,favoriteList:n,testKey:r});const o=Mo(S.default,t.feedSlug),s=t.feedSlug===ts?Qr.UGC:Qr.DEFAULT;const a={stories:o.map((e=>{const t={title:null,tags:[],slidesCount:null};return e&&(t.title=e.stat_title,t.tags=e.tags,t.slidesCount=e.slides_count,e.type===Qr.UGC&&(t.ugcPayload=R()(e.payload)?e.payload:{})),Object.assign({id:e.id},t)})),feed:null,filter:null};s===Qr.DEFAULT?a.feed=t.feedSlug:s===Qr.UGC&&(a.filter=t.filter),this.storyManager.emit("feedLoad",a);return{defaultStories:Mo(S.default,t.feedSlug),favoriteStories:Mo(S.favorite,t.feedSlug)}}))}observeDefaultStories(e){return ii.map((t=>{var r;return(null!==(r=t[e])&&void 0!==r?r:[]).map((e=>this.createStoryByData(Object.assign(Object.assign({},e),{slides_html:[]}))))}))}observeFavoriteStories(){return oi.map((e=>e.map((e=>this.createStoryByData(Object.assign(Object.assign({},e),{slides_html:[]}))))))}observeSession(){return Fr.map((e=>bo.createInstance(Fo,e)))}createStoryByData(e){return e instanceof xo?e:bo.createInstance(xo,e)}}var Bo,No,Uo,Wo;!function(e){e.LEFT="left",e.RIGHT="right"}(Bo||(Bo={})),function(e){e.FLAT="flat",e.COVER="cover",e.CUBE="cube"}(No||(No={})),function(e){e.CIRCLE="circle",e.QUAD="quad",e.RECTANGLE="rectangle"}(Uo||(Uo={})),function(e){e.STYLE_CIRCLE="circle",e.STYLE_QUAD="quad",e.STYLE_RECTANGLE="rectangle",e.SWIPE_CUBE="cube",e.SWIPE_FLAT="flat",e.SWIPE_COVER="cover",e.CLOSE_BUTTON_LEFT="left",e.CLOSE_BUTTON_RIGHT="right"}(Wo||(Wo={}));class $o{constructor(e){this.nextHandler=e}handleStoryClick(e,t){this.nextHandler&&this.nextHandler.handleStoryClick(e,t)}}class Go extends $o{constructor(e){super(e)}handleStoryClick(e,t){var r;if(e.hide_in_reader)return void console.error("Cannot open hidden story id"+e.id);const i={id:e.id,index:t.index,isDeeplink:!1,url:null!==(r=e.deeplink)&&void 0!==r?r:void 0};t.eventPublisher.emit("clickOnStory",i),super.handleStoryClick(e,t)}}class qo extends $o{constructor(e){super(e)}handleStoryClick(e,t){var r;if(!e.deeplink||!this.isValidDeeplink(e.deeplink))return void super.handleStoryClick(e,t);const i={id:e.id,index:t.index,isDeeplink:(!1,!0),url:null!==(r=e.deeplink)&&void 0!==r?r:void 0};i.url=e.deeplink,t.eventPublisher.emit("clickOnStoryDeepLink",i)}isValidDeeplink(e){return N()(e)&&e.trim().length>0}}class zo extends $o{constructor(e){super(e)}handleStoryClick(e,t){var r;const i=null===(r=e.game_instance)||void 0===r?void 0:r.id;i?t.eventPublisher.emit("clickOnStoryGame",{id:e.id,gameInstanceId:i}):super.handleStoryClick(e,t)}}class Ho extends $o{constructor(){super()}handleStoryClick(e,t){const r={index:t.index,isDeeplink:!1,id:e.id,listType:S.default,windowReferer:w.default};e.favorite_cell?t.eventPublisher.emit("clickOnFavoriteCellInternal",r):e.ugc_card_cell?t.eventPublisher.emit("clickOnUgcCardCellInternal",r):t.eventPublisher.emit("clickOnStoryInternal",r),super.handleStoryClick(e,t)}}var Vo=__webpack_require__(2451),Yo=__webpack_require__.n(Vo),Ko=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class Qo extends yo{set modeDesktop(e){this._modeDesktop=e,this.emit("update")}get modeDesktop(){return this._modeDesktop}get session(){return this._session}constructor(e,t,r){super(),this.appearanceManager=e,this.storiesService=t,this.params=r,this.stories=[],this._session=null,this._options=d,this._modeDesktop=!0,this.defaultStories=[],this.favoriteStories=[],this.storyReader=null,this.subscriptions=[],this.favoriteStoryImages=[],this.setDefaultStories=this.setDefaultStories.bind(this),this.setFavoriteStories=this.setFavoriteStories.bind(this),this.setSession=this.setSession.bind(this),this.hanldeShowStory=this.hanldeShowStory.bind(this),this.handleCloseStory=this.handleCloseStory.bind(this),this.subscribeToStoriesService(),this.loadStories({needFavorite:!0}),this.emit("create")}get cardOptions(){return this._options.card}get options(){return this._options}get isTitleCardInner(){return this._options.card.title.position===s.CARD_INSIDE_BOTTOM}get isTitleCardOutsideTop(){return this._options.card.title.position===s.CARD_OUTSIDE_TOP}get isTitleCardOutsideBottom(){return this._options.card.title.position===s.CARD_OUTSIDE_BOTTOM}get cardAspectRatio(){return this.options.card.aspectRatio?this.options.card.aspectRatio:this.options.card.variant===Wo.STYLE_CIRCLE||this.options.card.variant===Wo.STYLE_QUAD?1:this.options.card.variant===Wo.STYLE_RECTANGLE?this.session&&this.session.preview_aspect_ratio?this.session.preview_aspect_ratio:.8:1}onStoryClick(e,t){const r=new Ho,i=new Go(r),n=new zo(i);new qo(n).handleStoryClick(e,{eventPublisher:this,index:t})}destroy(){var e,t;this.emit("destroy"),this.subscriptions.forEach((e=>e.unsubscribe())),this.removeAllListeners(),null===(e=this.storyReader)||void 0===e||e.off("showStory",this.hanldeShowStory),null===(t=this.storyReader)||void 0===t||t.off("closeStoryReader",this.handleCloseStory)}getImageSrcByStory(e){var t;const r=null===(t=e.image)||void 0===t?void 0:t.findOneByCoverQuality(this.cardOptions.coverQuality);return null==r?void 0:r.url}setOptions(e){this._options=Yo()(this._options,e),this.emit("update")}reload(){return Ko(this,void 0,void 0,(function*(){return this.loadStories({needFavorite:!1})}))}setFavoriteStoryImages(){this.favoriteStoryImages=this.favoriteStories.map((e=>{var t;const r=null===(t=e.image)||void 0===t?void 0:t.findOneByCoverQuality(this.options.favoriteCard.coverQuality);return{src:null==r?void 0:r.url,color:e.background_color}})).slice(0,4)}setStories(){this.stories=this.defaultStories.slice(),this.params.useUgcCard&&this.stories.unshift(Eo.create(this.options)),this.appearanceManager.commonOptions.hasFavorite&&this.favoriteStories.length>0&&this.stories.push(Ao.create(this.options))}setDefaultStories(e){this.defaultStories=e,this.setStories(),this.emit("update")}setFavoriteStories(e){this.favoriteStories=e,this.setStories(),this.setFavoriteStoryImages(),this.emit("update")}setSession(e){this._session=e,this.emit("update")}setStoryReader(e){this.storyReader=e,this.storyReader.on("showStory",this.hanldeShowStory),this.storyReader.on("closeStoryReader",this.handleCloseStory)}hanldeShowStory(e){this.emit("openStory",e.id)}handleCloseStory(e){this.emit("closeStory",e.id)}subscribeToStoriesService(){const e=this.storiesService.observeDefaultStories(this.params.identityFields.feedSlug).watch(this.setDefaultStories);if(this.hasFavoriteStories()){const e=this.storiesService.observeFavoriteStories().watch(this.setFavoriteStories);this.subscriptions.push(e)}const t=this.storiesService.observeSession().watch(this.setSession);this.subscriptions.push(e,t)}hasFavoriteStories(){return this.appearanceManager.commonOptions.hasFavorite&&this.params.listType===Qr.DEFAULT}loadStories(e){var t;return Ko(this,void 0,void 0,(function*(){const r=Boolean(this.appearanceManager.commonOptions.hasFavorite)&&e.needFavorite,i={feed:this.params.identityFields.feedSlug,filter:{},defaultListLength:0,favoriteListLength:0,success:!0,error:{name:"",networkStatus:200,networkMessage:""}};try{this.emit("startLoading");const{defaultStories:e,favoriteStories:t}=yield this.storiesService.loadStories(Object.assign(Object.assign({},this.params),{needFavorite:r}));i.success=!0,i.error=null,i.defaultListLength=e.length,this.appearanceManager.commonOptions.hasFavorite&&this.params.listType===Qr.DEFAULT&&(i.favoriteListLength=t.length)}catch(e){console.error(e),i.success=!1,i.error={name:e.name,networkMessage:e.networkMessage,networkStatus:e.networkStatus}}finally{i.filter=null!==(t=this.params.identityFields.filter)&&void 0!==t?t:{},this.emit("endLoading",i)}}))}}class Xo{constructor(e,t,r){this.appearanceManager=e,this.storiesService=t,this.params=r}create(){const e=new Qo(this.appearanceManager,this.storiesService,this.params);return e.setOptions(this.appearanceManager.storiesListOptions),e}}var Jo=__webpack_require__(6292),Zo=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},es=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r};const ts="{{__ugc__}}",rs=e=>e===ts?Qr.UGC:Qr.DEFAULT;(0,A.XM)({source:Fr,clock:Fr,filter:e=>{var t;return Boolean(null===(t=null==e?void 0:e.session)||void 0===t?void 0:t.id)},target:(0,A.EH)((e=>{const t=e.cache.filter((e=>"font-face"===e.type));(0,Jo.eJ)(t)}))});class is extends Error{constructor(e){super(`Appearance Manager must be an object, but passed ${e.toUpperCase()}. Please check your code.`)}}const ns=e=>{if(null==e||"object"!=typeof e)throw new is(null==e?"null":typeof e)};t.EventEmitter;const os=Object.prototype.hasOwnProperty,ss=(e,t)=>{let r=[];switch(e){case S.default:r=t?ii.getState()[t]:[];break;case S.favorite:r=oi.getState();break;case S.onboarding:r=t?ni.getState()[t]:[]}return null!=r?r:[]},as=()=>Fr.getState().cache.filter((e=>"font-face"===e.type)),ls=()=>{const e=I.getState(),t=Ai.getState(),r=[],i={};for(let t in e.default)os.call(e.default,t)&&(i[t]={type:O.TEXT,name:t,value:e.default[t]});for(let t in e.user)os.call(e.user,t)&&(i[t]={type:O.TEXT,name:t,value:e.user[t]});for(let e in i)os.call(i,e)&&r.push(i[e]);const n={};for(let e in t.default)os.call(t.default,e)&&(n[e]={type:O.IMAGE,name:e,value:t.default[e]});for(let e in t.user)os.call(t.user,e)&&(n[e]={type:O.IMAGE,name:e,value:t.user[e]});for(let e in n)os.call(n,e)&&r.push(n[e]);return r},ds=(e,t,r)=>Zo(void 0,void 0,void 0,(function*(){var i,n,o,s;const a=yield $i({id:e,feedSlug:"",fetchShareUrl:r}),l=(new Date).getTime(),d=null===(n=null===(i=a.find((e=>"story"===e.ref)))||void 0===i?void 0:i.body)||void 0===n?void 0:n.id,c=Zr.getState().find((e=>e.id===d))||Xr(d);c.slidesLoaded=!1;const u={windowReferer:w.default,listType:S.default,id:d,storyContext:bi.getState(),storyList:[c],hasShare:Fr.getState().share,placeholders:ls()};t.closeReader(),t.openReader(u,{listType:S.direct,feed:null});N()(e)&&M()(a)&&(e=null===(s=null===(o=a.find((e=>"story"===e.ref)))||void 0===o?void 0:o.body)||void 0===s?void 0:s.id,yield wi({ids:[e],feedSlug:""}));const p=Zr.getState().find((t=>t.id===e));if(void 0!==p){t.setFonts(as());const e=()=>{p.slidesLoaded=!0,t.setStoriesAndContext({listType:S.direct,storyList:[p],storyContext:_i(rs(""),bi.getState())})},r=Math.max(0,300-((new Date).getTime()-l));return r?setTimeout(e,r):e(),!0}return t.closeReader(),!1}));class cs extends t.EventEmitter{constructor(e,r){if(super(),this._callbacks={},this.clickOnButtonAction=({src:e,payload:t})=>{if(D()(this._callbacks.storyLinkClickHandler)||this.listenerCount(k.CLICK_ON_STORY)>0){const r={src:e,srcRef:"default",data:t};try{D()(this._callbacks.storyLinkClickHandler)&&this._callbacks.storyLinkClickHandler(r),this.emit(k.CLICK_ON_STORY,r)}catch(e){console.error(e)}}else window.open(t.url,"_self")},this._storyReaderInstance=null,this.storyReaderInstancePromise=null,this._goodsWidgetInstance=null,this._storyFavoriteReaderInstance=null,this.storyFavoriteReaderInstancePromise=null,this.SharePage=class extends t.EventEmitter{constructor(e,t,r,i="default"){return super(),this.options={},ns(t),r&&(this.options=r),cs.instance._showSharePage(e,t,this.options,this).then((({storyReaderInstance:e,appearanceManager:t,result:r})=>{this.storyReaderWidget=e,this.appearanceManager=t})),this}closeStoryReader(){return Zo(this,void 0,void 0,(function*(){this.storyReaderWidget&&(cs.instance.closeGoodsWidget(),this.storyReaderWidget.closeReader())}))}},this._showSharePage=(e,t,r,i)=>Zo(this,void 0,void 0,(function*(){setTimeout((()=>{i.emit(qi.START_LOADING),D()(r.handleStartLoad)&&r.handleStartLoad()})),this.storyReaderInstancePromise=this.initStoryReader(t,as(),{closeOnLastSlideByTimer:!1,recycleStoriesList:!1,_disableSession:this._config.disableStatistic});const n=this._config.disableStatistic,o=yield this.getStoryReaderInstance();let s=!1;try{o.on("closeStoryReader",(e=>{if(D()(r.handleStoryReaderClose)||i.listenerCount(qi.CLOSE_STORY_READER)>0)try{D()(r.handleStoryReaderClose)&&r.handleStoryReaderClose(),i.emit(qi.CLOSE_STORY_READER)}catch(e){console.error(e)}else{const e=window.location!=window.parent.location?window.parent.location:window.location;window.open(`${e.protocol}//${e.host}`,"_parent")}})),s=yield ds(e,o,n)}catch(e){}return i.emit(qi.END_LOADING,{result:s}),D()(r.handleStopLoad)&&r.handleStopLoad(s),{storyReaderInstance:o,appearanceManager:t,result:s}})),this.onBeforeStoryReaderOpen=null,this.onBeforeFavoriteReaderOpen=null,this.onStoryReaderClosed=null,this.onFavoriteReaderClosed=null,cs.instance)console.warn("StoryManager singleton is created multiple times\nuse IAS.StoryManager.getInstance() instead");else{if(!e.nonce){const t=document.querySelector("[nonce]");null!=t&&(e.nonce=t.nonce||t.getAttribute("nonce"))}(0,q.F)(e.apiKey),Er.getInstance().checkUserIdLength(e.userId),Er.getInstance().checkTagsLength(e.tags),(0,x.JG)(e),e.placeholders&&P(e.placeholders),e.imagePlaceholders&&Ei(e.imagePlaceholders),r&&R()(r)&&(this._callbacks=r),Br(),cs.instance=this}return e.disableStatistic="com.inappstory.webpreview"===e.appPackageId,this._config=e,cs.instance}destroy(){null!=cs.instance&&(cs.instance=null)}set storyLinkClickHandler(e){D()(e)&&(this._callbacks.storyLinkClickHandler=e)}set openGoodsWidgetHandler(e){D()(e)&&(this._callbacks.openGoodsWidgetHandler=e)}get openGoodsWidgetHandler(){return this._callbacks.openGoodsWidgetHandler}static getInstance(){return cs.instance?cs.instance:null}createStoryListViewModel(e){var{appearanceManager:t,identityFields:r,listType:i,ugcCardClickHandler:n}=e,o=es(e,["appearanceManager","identityFields","listType","ugcCardClickHandler"]);ns(t);const s=new Do(this),a=new Xo(t,s,Object.assign(Object.assign({},o),{identityFields:r,listType:i})).create();return this.handleStoryListViewModelEvents(a,{appearanceManager:t,listType:i,identityFields:r,ugcCardClickHandler:n}),a}handleStoryListViewModelEvents(e,t){e.on("clickOnStoryInternal",(r=>Zo(this,void 0,void 0,(function*(){yield this.initStoryReaderByStoryListViewModel(e,t.appearanceManager),this.handleClickOnStoryInternal(r,t.identityFields)})))).on("clickOnFavoriteCellInternal",(r=>Zo(this,void 0,void 0,(function*(){yield this.initStoryFavoriteReaderByStoryListViewModel(e,t.listType,t.appearanceManager),this.handleClickOnFavoriteCellInternal(r,t.identityFields)})))).on("clickOnUgcCardCellInternal",(()=>{var e;return null===(e=t.ugcCardClickHandler)||void 0===e?void 0:e.call(t)})).on("clickOnStoryDeepLink",(e=>{this.handleSetStoryOpened(e.id),this.handleClickOnStoryDeepLink(e,{listType:t.listType})})).on("clickOnStoryGame",(({id:e,gameInstanceId:r})=>{this.handleSetStoryOpened(e),this.openGame(r,t.appearanceManager)})).on("clickOnStory",(e=>this.handleClickOnStory(e,t.identityFields)))}initStoryReaderByStoryListViewModel(e,t){return Zo(this,void 0,void 0,(function*(){if(null!==this.storyReaderInstancePromise)return;const r=as();this.storyReaderInstancePromise=this.initStoryReader(t,r);const i=yield this.getStoryReaderInstance();e.setStoryReader(i)}))}initStoryFavoriteReaderByStoryListViewModel(e,t,r){return Zo(this,void 0,void 0,(function*(){if(null!==this.storyFavoriteReaderInstancePromise)return;const t=as();yield this.initStoryReaderByStoryListViewModel(e,r),this.storyFavoriteReaderInstancePromise=this.initStoryFavoriteReader(r,t)}))}handleClickOnStoryDeepLink(e,{listType:t}){const r={data:[[1,0,e.id,0,0]]},i=()=>{e.isDeeplink&&e.url&&this.clickOnButtonAction({src:Zi.STORY_LIST,payload:e})};t===Qr.UGC||this._config.disableStatistic?i():Ir("session/update",r,Cr.createFunctionWithTimeout(i,1e3))}handleClickOnFavoriteCellInternal(e,t){return Zo(this,void 0,void 0,(function*(){try{D()(this.onBeforeFavoriteReaderOpen)&&(yield this.onBeforeFavoriteReaderOpen());const r=Object.assign(Object.assign({},e),{storyList:ss(S.favorite)});(yield this.getStoryFavoriteReaderInstance()).openReader(r,{listType:S.favorite,identityFields:t})}catch(e){console.error(e)}}))}handleClickOnStory(e,t){if(0===e.id)this.emit("clickOnFavoriteCell",{feed:t.feedSlug});else{const r=t.feedSlug,i=t.filter,n=rs(r),o={title:null,tags:[],slidesCount:null,feed:null,filter:null,source:null},s=Zr.getState().find((t=>t.id===e.id));s&&(o.title=s.stat_title,o.tags=s.tags,o.slidesCount=s.slides_count),n===Qr.DEFAULT?o.feed=r:n===Qr.UGC&&(o.filter=i),o.source=b.list,this.emit("clickOnStory",Object.assign(Object.assign({},e),o))}}setTags(e){M()(e)&&(Er.getInstance().checkTagsLength(e),(0,x.ib)({tags:e}))}setUserId(e){(N()(e)||W()(e))&&(Er.getInstance().checkUserIdLength(e),(0,x.by)({userId:e}),Br())}setLang(e){N()(e)&&(0,x.rN)({lang:e})}setPlaceholders(e){R()(e)&&((0,x.Fn)({placeholders:e}),P(e))}setImagePlaceholders(e){R()(e)&&((0,x.qR)({imagePlaceholders:e}),Ei(e))}get storyReaderInstance(){return this._storyReaderInstance}getStoryReaderInstance(){return Zo(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{null===this._storyReaderInstance?null!==this.storyReaderInstancePromise?this.storyReaderInstancePromise.then((t=>{this._storyReaderInstance=t,e(t)})):t("_storyReaderInstance not init yet"):e(this._storyReaderInstance)}))}))}getStoryFavoriteReaderInstance(){return Zo(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{null===this._storyFavoriteReaderInstance?null!==this.storyFavoriteReaderInstancePromise?this.storyFavoriteReaderInstancePromise.then((t=>{this._storyFavoriteReaderInstance=t,e(t)})):t("_storyFavoriteReaderInstance not inited yet"):e(this._storyFavoriteReaderInstance)}))}))}handleClickOnStoryInternal(e,t){return Zo(this,void 0,void 0,(function*(){D()(this.onBeforeStoryReaderOpen)&&(yield this.onBeforeStoryReaderOpen());const r=(new Date).getTime(),i=ss(e.listType,t.feedSlug),n=rs(t.feedSlug);let o=Fr.getState().share;n===Qr.UGC&&(o=!1);const s=Object.assign(Object.assign({},e),{storyContext:_i(n,bi.getState()||yi(n,i.map((e=>e.id)))),storyList:i,hasShare:o,placeholders:ls()}),a=yield this.getStoryReaderInstance();a.openReader(s,{listType:e.listType,identityFields:t});const l=_i(n,bi.getState());let d=null!==l&&""!==l.style;n===Qr.DEFAULT&&l&&di.getState()[n].length>0&&l.ids!==di.getState()[n]&&(d=!1);const c=Zr.getState().find((t=>t.id===e.id&&t.type===n));if(d||!c||c.slidesLoaded)d?c&&c.slidesLoaded||(yield Ni({ids:[e.id],feedSlug:t.feedSlug})):di.getState()[n].length&&(yield wi({ids:di.getState()[n],feedSlug:t.feedSlug}));else{let r=[];n===Qr.DEFAULT&&(r=di.getState()[n]),yield Wi({ids:r,id:e.id,feedSlug:t.feedSlug})}const u=di.getState()[n];u.length>0&&(yield Ni({ids:u,feedSlug:t.feedSlug}));const p=()=>{a.setStoriesAndContext({listType:e.listType,storyList:ss(e.listType,t.feedSlug),storyContext:_i(n,bi.getState()||yi(n,u))})},f=Math.max(0,300-((new Date).getTime()-r));f?setTimeout(p,f):p()}))}handleRedirectToStoryInternal(e){var t,r;return Zo(this,void 0,void 0,(function*(){const i=(new Date).getTime(),n="default",o=yield this.getStoryReaderInstance(),s=e.id,a=Xr(s),l={windowReferer:w.default,listType:S.default,id:a.id,storyContext:bi.getState(),storyList:[a],hasShare:Fr.getState().share,placeholders:ls()};o.silentClose=!0,o.closeReader(),o.openReader(l,{listType:S.direct,feed:n}),setTimeout((()=>o.silentClose=!1),300);const d=yield $i({id:s,feedSlug:n});if(N()(s)&&M()(d)){const e=null===(r=null===(t=d.find((e=>"story"===e.ref)))||void 0===t?void 0:t.body)||void 0===r?void 0:r.id;yield wi({ids:[e],feedSlug:n})}const c=Zr.getState().find((e=>e.id===s));if(void 0!==c){const t=()=>{o.setStoriesAndContext({listType:e.listType,storyList:[c],storyContext:_i(rs(n),bi.getState())})},r=Math.max(0,300-((new Date).getTime()-i));r?setTimeout(t,r):t()}return!0}))}handleSetStoryOpened(e){if(!xi()(Fr.getState().user_key)){const t=`u/${Fr.getState().user_key}/s_opened`;let r=function(e){let t=null;if(Gi){let r=window.localStorage.getItem(e);null!==r&&N()(r)&&r.trim().length>0&&(t=JSON.parse(r))}return t}(t);M()(r)||(r=[]),r.push(e),r=Hi()(r),function(e,t){Gi&&window.localStorage.setItem(e,JSON.stringify(t))}(t,r)}pi({id:e})}handleApiRequest(e,t){var r,i,n,o,s,a,l,d,c;return Zo(this,void 0,void 0,(function*(){let u=!1,p="",f={url:null!==(i=null===(r=e.data)||void 0===r?void 0:r.url)&&void 0!==i?i:"",method:null!==(o=null===(n=e.data)||void 0===n?void 0:n.method)&&void 0!==o?o:"get"};-1!==["post","put","path"].indexOf(null===(s=e.data)||void 0===s?void 0:s.method)?f.data=null!==(l=null===(a=e.data)||void 0===a?void 0:a.data)&&void 0!==l?l:void 0:f.params=null!==(c=null===(d=e.data)||void 0===d?void 0:d.params)&&void 0!==c?c:void 0;const h={requestId:e.id};try{const e=yield Pr.request(f);h.data=e.data,h.status=e.status,h.headers=e.headers,u=!0}catch(e){h.data=e,h.status=400,h.headers=[{}],p=e.toString()}t.rpcCb(e.cb,{requestId:e.id,success:u,data:h,err:p})}))}initStoryReader(e,t,r={}){return Zo(this,void 0,void 0,(function*(){const i=Ur.getState(),n=new V("body",{storyWidgetsResources:i}),o=()=>{let e=x.Tl.getState().lang||"en";const t=new RegExp(/^[a-zA-Z]+(-[a-zA-Z]+)?$/),r=e.match(t);if(null!==r&&null==r[1]){const r=navigator.language.match(t);null!==r&&null!=r[1]&&(e+=r[1])}return e},s=({storyReaderOptions:e,gameReaderOptions:t,appearanceCommon:r,overrideStoryReaderOptions:i,faviconApiUrl:n})=>{const s=e;return s.gameReaderOptions=t,Object.assign(Object.assign(Object.assign(Object.assign({},s),{appearanceCommon:r}),i),{faviconApiUrl:n,language:o()})},a=e.storyReaderOptions,l=e.gameReaderOptions;yield n.init(s({storyReaderOptions:a,gameReaderOptions:l,appearanceCommon:e.commonOptions,overrideStoryReaderOptions:r,faviconApiUrl:q.C.faviconApiUrl})),n.setFonts(t),Ur.getState().length>i.length&&(null==n||n.setStoryWidgetsResources(Ur.getState())),Ur.watch((e=>{null==n||n.setStoryWidgetsResources(e)})),n.setCallbacks({}),n.on("setStoryOpened",(e=>{this.handleSetStoryOpened(e.data.id),n.rpcCb(e.cb,{requestId:e.id,success:!0,data:e.data,err:""})})),n.on("updateStoryFavorite",(e=>Zo(this,void 0,void 0,(function*(){let t=!1;const r={favorite:void 0};let i="";try{const n=yield Pr.post(`story-favorite/${e.data.id}`,{value:e.data.favorite});void 0!==n.data.favorite?(t=!0,r.favorite=Boolean(n.data.favorite),ci({id:e.data.id,favorite:r.favorite}),!1===r.favorite?Di({storiesIdsUserEntity:ei.FAVORITE,storyList:oi.getState().filter((t=>t.id!==e.data.id))}):Di({storiesIdsUserEntity:ei.FAVORITE,storyList:[...oi.getState(),...Zr.getState().filter((t=>t.id===e.data.id))]})):i="response.data.favorite is undefined"}catch(e){i=e.toString()}n.rpcCb(e.cb,{requestId:e.id,success:t,data:r,err:i})})))),n.on("updateStoryLike",(e=>Zo(this,void 0,void 0,(function*(){let t=!1;const r={like:void 0};let i="";try{const n=yield Pr.post(`story-like/${e.data.id}`,{value:e.data.like});void 0!==n.data.like?(t=!0,r.like=n.data.like,ui({id:e.data.id,like:r.like})):i="response.data.like is undefined"}catch(e){i=e.toString()}n.rpcCb(e.cb,{requestId:e.id,success:t,data:r,err:i})})))),n.on("getStorySharePath",(e=>Zo(this,void 0,void 0,(function*(){let t=!1;const r={url:void 0};let i="";try{const n=yield Pr.get(`story-share/${e.data.id}`,{});void 0!==n.data.url?(t=!0,r.url=n.data.url):i="response.data.url is undefined"}catch(e){i=e.toString()}n.rpcCb(e.cb,{requestId:e.id,success:t,data:r,err:i})})))),n.on("apiRequest",(e=>this.handleApiRequest(e,n))),n.on("updateStoriesStat",(e=>Zo(this,void 0,void 0,(function*(){var t,r,i,o;const s=null!==(o=null===(i=null===(r=null===(t=n.options)||void 0===t?void 0:t.sourceInfo)||void 0===r?void 0:r.identityFields)||void 0===i?void 0:i.feedSlug)&&void 0!==o?o:"";let a=!1,l="";if(rs(s)===Qr.UGC||this._config.disableStatistic)a=!0;else try{Ir("session/update",e.data,(()=>{})),a=!0}catch(e){l=e.toString()}n.rpcCb(e.cb,{requestId:e.id,success:a,data:{},err:l})})))),n.on("clickOnButton",(e=>{const t=()=>this.clickOnButtonAction({src:Zi.STORY_READER,payload:e});!this._config.disableStatistic&&e.dataForSending&&R()(e.dataForSending)&&Array.isArray(e.dataForSending.data)&&e.dataForSending.data.length>0?Ir("session/update",e.dataForSending,t):t()})),n.on("clickOnSwipeUpGoods",(t=>{n&&(this._goodsWidgetInstance=new _r(this,e,n,t),this._goodsWidgetInstance.once("close",(e=>{this._goodsWidgetInstance=null,n&&n.closeGoodsWidget(e)})))})),n.on("closeStoryReader",(e=>{cs.instance.closeGoodsWidget()}));["showSlide","showStory","closeStory","clickOnButton","likeStory","dislikeStory","favoriteStory","shareStory","shareStoryWithPath"].forEach((e=>n.on(e,(t=>{var r,i,o,s,a;const l=null===(r=n.options.sourceInfo)||void 0===r?void 0:r.listType,d=null===(o=null===(i=n.options.sourceInfo)||void 0===i?void 0:i.identityFields)||void 0===o?void 0:o.feedSlug,c=null===(a=null===(s=n.options.sourceInfo)||void 0===s?void 0:s.identityFields)||void 0===a?void 0:a.filter,u=rs(d),p={title:null,tags:[],slidesCount:null,feed:null,filter:null,source:null},f=Zr.getState().find((e=>e.id===t.id));if(f&&(p.title=f.stat_title,p.tags=f.tags,p.slidesCount=f.slides_count,f.type===Qr.UGC&&(p.ugcPayload=R()(f.payload)?f.payload:{})),u===Qr.DEFAULT?p.feed=d:u===Qr.UGC&&(p.filter=c),l===S.direct?p.source=b.direct:l===S.default?p.source=b.list:l===S.onboarding?p.source=b.onboarding:l===S.favorite&&(p.source=b.favorite),null!=t.index&&-1===["clickOnStory","showStory"].indexOf(e)&&(t.payload=null,f&&f.slides_payload&&Array.isArray(f.slides_payload))){const e=f.slides_payload.find((e=>e.slide_index===t.index));null!=e&&e.payload&&(t.payload=e.payload)}"clickOnButton"===e&&delete t.dataForSending,this.emit(e,Object.assign(Object.assign({},t),p))})))),n.on("redirectToStory",(e=>this.handleRedirectToStoryInternal(e))),n.on("openGameCenter",(({gameId:t})=>Zo(this,void 0,void 0,(function*(){const r=()=>{var e;n.resumeAndEnableViewerUI(),null===(e=this.gameReader)||void 0===e||e.off("closeReader",r)};yield this.openGame(t,e),this.gameReader&&(n.pauseAndBlockViewerUI({isInBackground:!0}),this.gameReader.on("closeReader",r))})))),n.on("closeStoryReader",(e=>{D()(this.onStoryReaderClosed)&&this.onStoryReaderClosed()}));const d=({storyReaderOptions:e,gameReaderOptions:t,appearanceCommon:i})=>Zo(this,void 0,void 0,(function*(){(yield this.getStoryReaderInstance()).setOptions(s({storyReaderOptions:e,gameReaderOptions:t,appearanceCommon:i,overrideStoryReaderOptions:r,faviconApiUrl:q.C.faviconApiUrl}))}));return e.on(_.EVENT_UPDATED_STORY_READER_OPTIONS,d),e.on(_.EVENT_UPDATED_COMMON_OPTIONS,d),e.on(_.EVENT_UPDATED_GAME_READER_OPTIONS,d),n.on("debugLog",(e=>{console.log("debugLog",e)})),n}))}initStoryFavoriteReader(e,t){return Zo(this,void 0,void 0,(function*(){if(null!==this._storyFavoriteReaderInstance)return this._storyFavoriteReaderInstance;const r=new wr("body",{});return yield r.init({options:e.storyFavoriteReaderOptions,storiesListOptions:e.storiesListOptions}),r.setFonts(t),r.setCallbacks({}),r.on("closeReader",(()=>{try{window.focus()}catch(e){console.error(e)}})),r.on("clickOnStoryInternal",(e=>{var t,i,n;const o={title:null,tags:[],slidesCount:null,feed:null,filter:null,source:null},s=Zr.getState().find((t=>t.id===e.id));s&&(o.title=s.stat_title,o.tags=s.tags,o.slidesCount=s.slides_count),o.feed=null===(i=null===(t=r.options.sourceInfo)||void 0===t?void 0:t.identityFields)||void 0===i?void 0:i.feedSlug,o.source=b.favorite,this.emit("clickOnStory",Object.assign({id:e.id,index:e.index,isDeeplink:e.isDeeplink},o)),this.handleClickOnStoryInternal(e,null===(n=r.options.sourceInfo)||void 0===n?void 0:n.identityFields)})),(yield this.getStoryReaderInstance()).on("openStoryReader",(e=>r.openStoryReader(e))),(yield this.getStoryReaderInstance()).on("closeStoryReader",(e=>r.closeStoryReader(e))),r.on("closeReader",(e=>{D()(this.onFavoriteReaderClosed)&&this.onFavoriteReaderClosed()})),e.on(_.EVENT_UPDATED_FAVORITE_READER_OPTIONS,(e=>Zo(this,void 0,void 0,(function*(){(yield this.getStoryFavoriteReaderInstance()).setAppearanceOptions(e)})))),r}))}showOnboardingStories(e,t){return Zo(this,void 0,void 0,(function*(){const r=as();let i="onboarding";t&&t.feed&&N()(t.feed)&&(i=t.feed),yield Ri({defaultList:!1,onboardingList:i,favoriteList:!1,onboardingTags:t?t.customTags:void 0,limit:t?t.limit:void 0}),null===this.storyReaderInstancePromise&&(this.storyReaderInstancePromise=this.initStoryReader(e,r));const n=ss(S.onboarding,i);if(n.length>0){const e={windowReferer:w.default,listType:S.onboarding,id:n[0].id};return yield this.handleClickOnStoryInternal(e,{feedSlug:i}),!0}return!1}))}showStory(e,t,r="default"){return Zo(this,void 0,void 0,(function*(){ns(t);const r=as();null===this.storyReaderInstancePromise&&(this.storyReaderInstancePromise=this.initStoryReader(t,r));const i=yield this.getStoryReaderInstance();return yield ds(e,i)}))}openGame(e,t,r={}){return Zo(this,void 0,void 0,(function*(){try{ns(t);const i=yield this.initGameReader(t);yield i.openGame(e,r)}catch(e){console.error(e)}}))}closeGame(){return Zo(this,void 0,void 0,(function*(){return null!=this.gameReader&&this.gameReader.close()}))}initGameReader(e){return Zo(this,void 0,void 0,(function*(){if(this.gameReader)return this.gameReader;this.gameReader=new rn("body",{});return yield this.gameReader.init({appearanceManager:e,clickOnButtonAction:e=>{this.clickOnButtonAction({src:Zi.GAME_READER,payload:e})},handleApiRequest:this.handleApiRequest.bind(this)}),this.initGameReaderEventHandlers(this.gameReader),this.gameReader}))}initGameReaderEventHandlers(e){return Zo(this,void 0,void 0,(function*(){e.on(Qi.StartGame,(()=>this.emit("startGame",{id:e.gameInstanceId}))).on(Qi.GameComplete,(t=>{xi()(t)?this.emit("closeGame",{id:e.gameInstanceId}):this.emit("finishGame",{id:e.gameInstanceId,result:t})}))}))}closeStoryReader(){return Zo(this,void 0,void 0,(function*(){if(null===this.storyReaderInstancePromise)return!1;const e=yield this.getStoryReaderInstance();this.closeGoodsWidget(),e.closeReader()}))}closeGoodsWidget(){this._goodsWidgetInstance&&(this._goodsWidgetInstance.close(),this._goodsWidgetInstance=null)}getUgcEditorConfig(){var e,t,r;return Zo(this,void 0,void 0,(function*(){let i=Fr.getState();(null===(e=null==i?void 0:i.session)||void 0===e?void 0:e.id)||(yield jr({})),(null==i?void 0:i.editor)||(yield vi({}));const n=x.Tl.getState(),o=Fr.getState(),s="0.0.1";return{sessionId:o.session.id,apiKey:n.apiKey,editor:null!==(t=o.editor)&&void 0!==t?t:{},sdkVersion:s,appPackageId:n.appPackageId,deviceId:x.Ue.getState(),userId:null!=n.userId?String(n.userId):void 0,lang:null!==(r=n.lang)&&void 0!==r?r:"en"}}))}getNonce(){return this._config.nonce}get sdkVersionName(){return"0.0.1"}get sdkVersionCode(){return parseInt(1)}static get combinedPlaceholders(){return ls()}}})(),__webpack_exports__})()));
189
+ `;let mr=null;class yr extends t.EventEmitter{constructor(e,t,r,i){if(super(),this.appearanceManager=t,this.storyReaderInstance=r,this.widgetInitData=i,!r.iframe)return;const o=this.getGoods();this.mount(),this.render(),o.then((e=>this.render(e))).catch(console.error)}close(){var e;this.root&&(null===(e=this.root.parentNode)||void 0===e||e.removeChild(this.root),At().unmountComponentAtNode(this.root),this.emit("close",{elementId:this.widgetInitData.elementId}))}getGoods(){return(0,this.appearanceManager.goodsWidgetOptions.openGoodsWidgetHandler)(this.getEmptyGoods())}getEmptyGoods(){try{return JSON.parse(this.widgetInitData.url).map((e=>({sku:e,title:"",subTitle:"",price:"",oldPrice:"",rawData:{}})))}catch(e){return console.error(e),[]}}mount(){var e,t;this.root=document.createElement("div"),this.root.style.setProperty("position","fixed"),this.root.style.setProperty("top","0"),this.root.style.setProperty("left","0"),this.root.style.setProperty("right","0"),this.root.style.setProperty("bottom","0"),this.root.style.setProperty("z-index","2147483646"),null===(t=null===(e=this.storyReaderInstance.iframe)||void 0===e?void 0:e.parentNode)||void 0===t||t.insertBefore(this.root,this.storyReaderInstance.iframe.nextSibling)}render(e){this.root&&At().render(Ot(mt,{value:(null==mr&&(mr=Xe({key:"ias-widget-goods",nonce:x.Tl.getState().nonce})),mr),children:Ot(cr,{goodsList:e,widgetInitData:this.widgetInitData,appearanceManager:this.appearanceManager,onClose:()=>{this.close()}})}),this.root)}}var _r=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class br extends $.A{constructor(e,t){super(e,t)}init(e){return _r(this,void 0,void 0,(function*(){var t={},r={extraCss:e.options.extraCss||null,extraJs:null};t.allowTransparency=!0,t.overflowTouch=!1,t.backgroundColor="transparent";var i={startHeight:70,minWidth:150,storiesHeight:70},o=(document.querySelector("body"),document.querySelector("html"),t.zIndex||2147483644);const n=new G(window),s=this,a={event:function(e,t){s.emit(e,t)},setFixedHtmlPosition:function(){},open:function(){var e;n.setScrollbar(),s.iframe&&(s.iframe.style.setProperty("display","block"),s.iframe.style.setProperty("z-index",o)),null===(e=s.rpc)||void 0===e||e.callMethod("onReaderOpened")},close:function(){n.resetScrollbar(),s.iframe&&s.iframe.style.setProperty("display","none"),s.emit("closeReader")}};return new Promise(((o,n)=>{this._init(t,r,e,a,i,(function(e,t,r){e,t,r}),null,null,o,n)}))}))}getWidgetDocument(e,t){return`\n\n <script type="text/javascript" src="${`${q.C.baseUrl}/v2.10.4/dist/js/storyFavoriteReader.js`}"><\/script>\n <div id="app"><div id="_app"></div></div>\n <script type="text/javascript" nonce="${t}">\n window.storyFavoriteReader.init(${JSON.stringify(e)});\n <\/script>\n`}_init(e,t,r,i,o,n,s,a,l,d){const c=Object.create(null,{__init:{get:()=>super.__init}});return _r(this,void 0,void 0,(function*(){return o.fullScreen=!0,o.scrolling=!0,o.hidden=!0,n=(e,t,r)=>{this.rpc=r,this.iframe=t},yield c.__init.call(this,e,t,r,i,o,n,s,a,l,d)}))}sessionInit(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onSessionInit",e)}openReader(e,t){var r;this.options={sourceInfo:t},null===(r=this.rpc)||void 0===r||r.callMethod("onOpenReader",e)}syncStoreHandle(e){}openStoryReader(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onOpenStoryReader",e)}closeStoryReader(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("onCloseStoryReader",e)}setStories(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setStories",e)}setFonts(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setFonts",e)}_destroyClientWidget(){this.rpc.callMethod("destroyWidget")}setAppearanceOptions(e){var t;null===(t=this.rpc)||void 0===t||t.callMethod("setAppearanceOptions",e)}}var wr=__webpack_require__(7981);class Sr{static createFunctionWithTimeout(e,t){let r=!1;function i(){r||(r=!0,e())}return setTimeout(i,t||1e3),i}static convertModelToFormData(e,t,r){t instanceof Object&&Object.keys(t).forEach((i=>{const o=t[i];if(o instanceof Object&&!Array.isArray(o))return this.convertModelToFormData(e,o,i);r&&(i=`${r}[${i}]`),Array.isArray(o)?o.forEach((t=>{e.append(`${i}[]`,t)})):e.append(i,o)}))}}const Cr=e=>null==e;function kr(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)}function Or(e,t){return Object.assign(Object.assign({},e),t)}function Lr(e){return e.replace(/^\//,"")}function xr(e){let t=e.length;for(let r=e.length-1;r>=0;r--){const i=e.charCodeAt(r);i>127&&i<=2047?t++:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&r--}return t}class Ar{constructor(){return this._sdkConfigIsIncorrect=!1,this._userIdByteLimit=255,this._tagsByteLimit=4e3,this.userMessage="",this.tagsMessage="",Ar.instance||(Ar.instance=this),Ar.instance}static getInstance(){return Ar.instance?Ar.instance:new Ar}get sdkConfigIsIncorrect(){return this._sdkConfigIsIncorrect}get sdkConfigErrorsAsArray(){const e=[];return this.userMessage&&e.push(this.userMessage),this.tagsMessage&&e.push(this.tagsMessage),e}checkUserIdLength(e){this.userMessage="",null!=e&&xr(String(e))>this._userIdByteLimit&&(console.error(`UserId is bigger then ${this._userIdByteLimit} bytes`),this._sdkConfigIsIncorrect=!0,this.userMessage=`UserId "${String(e)}" is bigger then ${this._userIdByteLimit} bytes`)}checkTagsLength(e){this.tagsMessage="",null!=e&&Array.isArray(e)&&xr(e.join(","))>this._tagsByteLimit&&(console.error(`Tags (joined by ',') is bigger then ${this._tagsByteLimit} bytes`),this._sdkConfigIsIncorrect=!0,this.tagsMessage=`Tags (joined by ',') "${e.join(",")}" is bigger then ${this._tagsByteLimit} bytes`)}}var Er=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Mr=`InAppStoryWebSDK/${parseInt(2)} ${navigator.userAgent}`;const Tr=new class{constructor(){this._deviceInfoPromise=null,this._baseHeaders={},this.requestInterceptors=[],this.interceptors={request:{use:e=>{this.requestInterceptors.push(e)}}}}set deviceInfoPromise(e){this._deviceInfoPromise=e}set baseHeaders(e){this._baseHeaders=e}get baseURL(){return`${q.C.apiUrl}/v2/`}request(e){return Er(this,void 0,void 0,(function*(){return new Promise(((t,r)=>{const i=()=>Er(this,void 0,void 0,(function*(){try{if(kr(e.headers)&&null!=e.headers||(e.headers={}),e.headers=Or(this._baseHeaders,e.headers),this.requestInterceptors.length)for(const t of this.requestInterceptors)t(e);let r="";!Cr(e.params)&&kr(e.params)&&(r=new URLSearchParams(Object.entries(e.params)).toString());let i=new URL(`${Lr(e.url)}${r?"?"+r:""}`,this.baseURL),o="get";Cr(e.method)||(o=e.method);let n={};!Cr(e.headers)&&kr(e.headers)&&(n=e.headers);let s=null;!Cr(e.data)&&kr(e.data)&&(s=JSON.stringify(e.data),n["Content-Type"]="application/json");try{if(Ar.getInstance().sdkConfigIsIncorrect)return void t({data:{name:"SDK config is incorrect",message:Ar.getInstance().sdkConfigErrorsAsArray.join(". "),status:400},headersRaw:{},headers:{},status:400,statusText:"SDK config is incorrect",ok:!1})}catch(e){console.error(e)}const a=yield fetch(i.toString(),{method:o,body:s,headers:n,credentials:"omit"}),l=yield a.json();t({data:l,headersRaw:a.headers,headers:Object.fromEntries([...a.headers]),status:a.status,statusText:a.statusText,ok:a.ok})}catch(e){r(e)}}));this._deviceInfoPromise?this._deviceInfoPromise.finally(i):i()}))}))}post(e,t){return Er(this,void 0,void 0,(function*(){return this.request({method:"post",url:e,data:t})}))}get(e,t){return Er(this,void 0,void 0,(function*(){return this.request({method:"get",url:e,params:t})}))}};function Rr(e,t,r){var i,o,n;if("sendBeacon"in navigator){const s=new URLSearchParams({access_token:x.Tl.getState().apiKey,session_id:null===(o=null===(i=Pr.getState())||void 0===i?void 0:i.session)||void 0===o?void 0:o.id,x_user_agent:Mr}),a=x.Tl.getState();null!=a.appPackageId&&s.append("x_app_package_id",a.appPackageId);const l=`${n=Tr.baseURL,n.replace(/\/$/,"")}/${Lr(e)}?${s.toString()}`,d=new FormData;Object.keys(t).forEach((e=>{Sr.convertModelToFormData(d,t[e],e)}));let c=!1;null!=Array.from&&null!=d.keys&&(c=0===Array.from(d.keys()).length),c||navigator.sendBeacon(l,d),r()}else Tr.post(e,t).then((()=>r()),(()=>r()))}Tr.interceptors.request.use((e=>{var t,r,i;const o=x.Tl.getState();return e.headers=Or(null!==(t=e.headers)&&void 0!==t?t:{},{Authorization:`Bearer ${o.apiKey}`,"Accept-Language":o.lang||"en","Auth-Session-Id":null===(i=null===(r=Pr.getState())||void 0===r?void 0:r.session)||void 0===i?void 0:i.id,"X-Device-Id":x.Ue.getState(),"X-User-Id":o.userId?o.userId:"","X-Request-Id":(0,wr.A)(),"X-User-Agent":Mr}),null!=o.appPackageId&&(e.headers["X-App-Package-Id"]=o.appPackageId),e}));const Ir=Tr,Pr=(0,A.y$)({session:{id:"",expire_in:0},server_timestamp:0,content_base_url:"",user_key:"",share:!1,is_allow_profiling:!1,cache:[],placeholders:[],image_placeholders:[],editor:null,storyWidgetsResources:[],is_allow_ugc:!1}),Fr=(0,A.EH)();Pr.on(Fr.doneData,((e,t)=>t));const Dr=(0,A.lh)(),jr=(0,A.lh)();Pr.on(jr,(e=>{const t=Object.assign({},e);return t.session.id="",t}));const Br=(0,A.EH)((e=>{Rr("session/update",e,(()=>{}))})).prepend((e=>({data:[[5,0,...e]]}))),Nr=Pr.map((e=>e.storyWidgetsResources));const Ur=function(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}();var Wr=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let $r=null;function Gr(){return Wr(this,void 0,void 0,(function*(){return null!=$r?$r:new Promise((e=>{!function(e,t){const r=new Image;r.onload=function(){var i=r.width>0&&r.height>0;t(e,i)},r.onerror=function(){t(e,!1)},r.src="data:image/webp;base64,"+{lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}[e]}("lossy",((t,r)=>{$r=r,e(r)}))}))}))}var qr=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const zr=__webpack_require__(4406);function Hr(){return qr(this,void 0,void 0,(function*(){const[e,t]=yield Promise.all([Yr(),Gr()]);return{method:"POST",url:"session/open",params:{expand:"cache,storyWidgetsResources",fields:"session,server_timestamp,user_key,share,preview_aspect_ratio,placeholders,image_placeholders,is_allow_ugc"},data:Vr(e,t)}}))}Fr.use((()=>qr(void 0,void 0,void 0,(function*(){return(yield Ir.request(yield Hr())).data})))),(0,A.sY)({from:Dr,to:Pr});const Vr=(e,t)=>{"iOS"===e.os_name?window.isIos=!0:"Android"===e.os_name&&(window.Android=!0);const r=x.Tl.getState();return r&&r.userId&&(e.user_id=r.userId),e.features="animation,data,deeplink,placeholder,resetTimers,gameReader,sendApi,swipeUpItems,imgPlaceholder",t&&(e.features+=",webp"),e},Yr=()=>qr(void 0,void 0,void 0,(function*(){return new Promise(((e,t)=>{let r=function(e){let t=null;if(Ur){let r=window.localStorage.getItem(e);null!==r&&N()(r)&&r.trim().length>0&&(t=JSON.parse(r))}return t}("device_data"),i=null;if(null!==r&&(i=r.device_id),null!==r&&i&&N()(i)&&36===i.trim().length)(0,x.YB)(i),e(r);else{const t={platform:"web",device_id:zr.v4()};!function(e,t){Ur&&window.localStorage.setItem(e,JSON.stringify(t))}("device_data",t),(0,x.YB)(t.device_id),e(t)}}))}));var Kr;!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.UGC=1]="UGC"}(Kr||(Kr={}));const Qr=e=>({id:e,type:Kr.DEFAULT,title:null,title_color:null,background:null,background_color:null,image:null,display_to:null,display_from:null,slides_html:[],slides_screenshot_share:[],slides_duration:[],favorite:null,like:null,slides_count:0,deeplink:null,hide_in_reader:null,disable_close:null,like_functional:null,favorite_functional:null,share_functional:null,is_opened:null,tags:[],has_audio:null,video_cover:null,need_placeholders:null,has_swipe_up:null,slides_payload:[],game_instance:{id:null},share_url:null,slidesLoaded:!1}),Xr=(0,A.y$)({default:[]}),Jr=Xr.map((e=>e[Pr.getState().user_key||"default"]||[]));var Zr;!function(e){e.FEEDS="feeds",e.FAVORITE="favorite"}(Zr||(Zr={}));const ei=(0,A.y$)({default:{[Zr.FEEDS]:{},[Zr.FAVORITE]:[]}}),ti=ei.map((e=>e[Pr.getState().user_key||"default"]||{})),ri=(0,A.y$)({}),ii=(0,A.y$)({}),oi=(0,A.y$)([]),ni=(e,t)=>e.map((e=>t.find((t=>t.id===e)))).filter((e=>!!e));ri.on([ti,Jr],((e,t)=>{const r=ti.getState(),i=Jr.getState();return((e,t)=>{const r={};for(const[i,o]of Object.entries(e))r[i]=ni(o,t);return r})(r[Zr.FEEDS],i)})),ii.on([ti,Jr],((e,t)=>{const r=ti.getState(),i={},o=Jr.getState();for(const e in r[Zr.FEEDS])if("onboarding_"===e.substring(0,11)){const t=e.substring(11);i[t]=[],r[Zr.FEEDS][e]&&Array.isArray(r[Zr.FEEDS][e])&&(i[t]=o.filter((t=>-1!==r[Zr.FEEDS][e].indexOf(t.id)&&!t.is_opened)))}return i})),oi.on([ti,Jr],((e,t)=>{const r=ti.getState();return Jr.getState().filter((e=>{var t;return-1!==(null===(t=r[Zr.FAVORITE])||void 0===t?void 0:t.indexOf(e.id))}))}));const si=(0,A.EH)(),ai=(e,t="")=>(e.is_opened,e.is_opened),li=Jr.map((e=>{const t={};return t[Kr.DEFAULT]=e.filter((e=>!e.slidesLoaded&&e.type===Kr.DEFAULT)).map((e=>e.id)),t[Kr.UGC]=e.filter((e=>!e.slidesLoaded&&e.type===Kr.UGC)).map((e=>e.id)),t})),{storyItemFavoriteChanged:di,storyItemLikeChanged:ci,storyItemIsOpenedChanged:ui}=(Object.prototype.hasOwnProperty,(0,A.xP)(Xr,{storyItemFavoriteChanged:(e,{id:t,favorite:r})=>{const i=Pr.getState().user_key||"default",o=(e[i]||[]).slice(0),n=o.find((e=>e.id===t));return void 0!==n&&(n.favorite=r),Object.assign(Object.assign({},e),{[i]:o})},storyItemLikeChanged:(e,{id:t,like:r})=>{const i=Pr.getState().user_key||"default",o=(e[i]||[]).slice(0),n=o.find((e=>e.id===t));return void 0!==n&&(n.like=r),Object.assign(Object.assign({},e),{[i]:o})},storyItemIsOpenedChanged:(e,{id:t})=>{const r=Pr.getState().user_key||"default",i=(e[r]||[]).slice(0),o=i.find((e=>e.id===t));return void 0!==o&&(o.is_opened=!0),Object.assign(Object.assign({},e),{[r]:i})}}));var pi=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function fi(e,t,r=!1,i,o){const n=["slides_html","slides_duration","slides_screenshot_share","slides_payload"];o&&n.push("share_url");const s={url:`${t===es?"ugc/":""}story/${e}`,method:"GET",params:{expand:n.join(",")}};return r||null!=s.params&&(s.params.fields=["id","slides_html","slides_duration","slides_screenshot_share","slides_payload"].join(",")),null!==i&&null!=s.params&&(s.params.session_id=i),s}si.use((({listType:e})=>pi(void 0,void 0,void 0,(function*(){return Ir.get("story",hi())}))));const hi=(e,t,r,i,o)=>{var n;let s=null===(n=x.Tl.getState())||void 0===n?void 0:n.tags;const a={};s&&M()(s)&&s.length>0&&(a.tags=s.join(",")),void 0!==t&&M()(t)&&t.length>0&&(a.tags=t.join(","));return null==i||"number"!=typeof i&&!(e=>!isNaN(parseFloat(e))&&isFinite(e))(i)||(a.limit=i),e&&(a.session_id=e),null!=r&&(a.test=r),null!=o&&R()(o)&&(a.f=o),{params:a}},gi=(0,A.EH)();var vi=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};gi.use((()=>vi(void 0,void 0,void 0,(function*(){return(yield Ir.request(yield function(){return vi(this,void 0,void 0,(function*(){return{method:"GET",url:"ugc/editor-config",params:{}}}))}())).data})))),Pr.on(gi.doneData,((e,t)=>{const r=Object.assign({},e);return r.editor=t,r}));const mi=(e,t)=>{const r={};return r[Kr.DEFAULT]=[],r[Kr.UGC]=[],r[e]=t,{storyTypeIds:r,style:"",widgetsData:{}}},yi=(e,t)=>{let r;return r=null==t?mi(Kr.DEFAULT,[]):t,{ids:r.storyTypeIds[e],style:r.style,widgetsData:r.widgetsData}},_i=(0,A.y$)({style:"",storyTypeIds:{[Kr.DEFAULT]:[],[Kr.UGC]:[]},widgetsData:{}}),bi=(0,A.EH)(),wi=(0,A.lh)();var Si=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function Ci(e,t){const r={url:"story-context",method:"GET",params:{id:e.join(","),fields:["style","widgetsData"].join(",")}};return null!=t&&null!=r.params&&(r.params.session_id=t),r}function ki(e,t,r){return String(e).replace(new RegExp(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(t),"g"),(()=>r))}bi.use((({ids:e})=>Si(void 0,void 0,void 0,(function*(){return Ir.request(Ci(e))})))),(0,A.sY)({from:bi.done.filterMap((({params:e,result:t})=>{const r=t.data,i=ts(e.feedSlug);if(r&&R()(r)){const t=mi(i,e.ids);return t.style=r.style,t.widgetsData=r.widgetsData,t}})),to:_i}),(0,A.sY)({from:wi,to:_i});var Oi=__webpack_require__(3514),Li=__webpack_require__.n(Oi);const xi=(0,A.y$)({default:{},user:{}}),{sdkImagePlaceholdersChanged:Ai,addDefaultImagePlaceholders:Ei}=(0,A.xP)(xi,{sdkImagePlaceholdersChanged:(e,t)=>({default:e.default,user:t}),addDefaultImagePlaceholders:(e,t)=>{let r={default:{},user:e.user};return M()(t)&&t.forEach((e=>{R()(e)&&void 0!==e.name&&void 0!==e.default_value&&(r.default[e.name]=e.default_value)})),r}});var Mi=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Ti=(0,A.EH)((({defaultList:e,onboardingList:t,favoriteList:r,onboardingTags:i,testKey:o,limit:n})=>Mi(void 0,void 0,void 0,(function*(){var s,a,l;const d=[],c=null===(a=null===(s=Pr.getState())||void 0===s?void 0:s.session)||void 0===a?void 0:a.id;let u=null;if(Li()(c)&&(d.push(Ri(yield Hr(),"session")),u="@{session.session.id}"),!1!==e&&R()(e)&&N()(e.feedSlug)){const t=e.feedSlug,r=null!==(l=e.filter)&&void 0!==l?l:{};t===es?d.push(Ri(function(e,t,r,i,o){const{params:n}=hi(r,i,o,null,t);return{method:"GET",url:"ugc/feed",params:n}}(0,r,u,[],o),`storyList_${t}`)):d.push(Ri(function(e,t,r,i){const{params:o}=hi(t,r,i);return{method:"GET",url:`feed/${e}`,params:o}}(t,u,[],o),`storyList_${t}`))}r&&d.push(Ri(function(e){const{params:t}=hi(e);return{method:"GET",url:"story",params:Object.assign(Object.assign({},t),{favorite:1})}}(u),"storyFavoriteList")),!1!==t&&N()(t)&&d.push(Ri(function(e="onboarding",t,r,i){const{params:o}=hi(t,r,null,i);return{method:"GET",url:`feed/${e}/onboarding`,params:o}}(t,u,i,n),`storyOnboardingList_${t}`));let p=null;try{const e=yield Ir.post("composite",{compositeRequest:d});if(e.status>=200&&e.status<=299)if(e.data&&e.data.compositeResponse&&Array.isArray(e.data.compositeResponse)){if(e.data.success)return e.data.compositeResponse;for(const t of e.data.compositeResponse){const e=t.status;if(W()(e)&&!(e>=200&&e<=299)){p={name:"networkError",networkStatus:e,networkMessage:String(t.body)};break}}}else p=e.data&&R()(e.data)&&null!=e.data.name&&null!=e.data.message&&null!=e.data.status?{name:e.data.name,networkStatus:e.data.status,networkMessage:e.data.message}:{name:"networkError",networkStatus:null,networkMessage:"Invalid data in API response, data from response as json: "+JSON.stringify(e.data)};else p=e.data&&R()(e.data)&&null!=e.data.name&&null!=e.data.message&&null!=e.data.status?{name:e.data.name,networkStatus:e.data.status,networkMessage:e.data.message}:{name:"networkError",networkStatus:e.status,networkMessage:"Invalid data in API response, data from response as json: "+JSON.stringify(e.data)}}catch(e){try{const t=e;if(t.response&&t.response.status)p={name:"networkError",networkStatus:t.response.status,networkMessage:t.response.statusText};else{let t="";window.navigator&&null!=window.navigator.onLine&&(t=" net::ERR_INTERNET_DISCONNECTED"),p={name:"error",networkStatus:null,networkMessage:e.toString()+t},console.error(e)}}catch(e){p={name:"error",networkStatus:null,networkMessage:e.toString()}}}if(null!==p)throw p;return[]})))),Ri=(e,t)=>({path:e.url,qs:e.params,body:e.data,ref:t,method:e.method}),Ii=e=>{const t=I.getState();for(let r in t.user)Fi.call(t.user,r)&&(e=ki(e,`%${r}%`,t.user[r]));for(let r in t.default)Fi.call(t.default,r)&&(e=ki(e,`%${r}%`,t.default[r]));const r=xi.getState();for(let t in r.user)Fi.call(r.user,t)&&(e=ki(e,`%${t}%`,r.user[t]));for(let t in r.default)Fi.call(r.default,t)&&(e=ki(e,`%${t}%`,r.default[t]));return e},Pi=(e,t)=>Array.isArray(e)?e.map((e=>Object.assign(Object.assign({},e),{title:e.need_placeholders?Ii(e.title):e.title,slidesLoaded:!1,is_opened:ai(e),type:t}))):[];(0,A.sY)({from:Ti.doneData.filterMap((e=>{var t;return null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body})),to:Pr}),(0,A.sY)({from:Ti.doneData.filterMap((e=>{var t,r;return null===(r=null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body)||void 0===r?void 0:r.placeholders})),to:F}),(0,A.sY)({from:Ti.doneData.filterMap((e=>{var t,r;return null===(r=null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body)||void 0===r?void 0:r.image_placeholders})),to:Ei}),(0,A.sY)({from:Fr.doneData.filterMap((e=>e.placeholders)),to:F}),(0,A.sY)({from:Fr.doneData.filterMap((e=>e.image_placeholders)),to:Ei});const Fi=Object.prototype.hasOwnProperty;(0,A.XM)({source:Xr,clock:Pr,fn:(e,t)=>{const r={};for(const i in e)Fi.call(e,i)&&(r[i]=e[i].map((e=>Object.assign(Object.assign({},e),{is_opened:ai(e,t.user_key),title:e.need_placeholders?Ii(e.title):e.title}))));return r},target:Xr});const{storiesListIdsChanged:Di}=(0,A.xP)(ei,{storiesListIdsChanged:(e,{storiesIdsUserEntity:t,feedSlug:r,storyList:i})=>{let o=Pr.getState().user_key||"default";const n=e[o]||{};return void 0===n[Zr.FAVORITE]&&(n[Zr.FAVORITE]=[]),void 0===n[Zr.FEEDS]&&(n[Zr.FEEDS]={}),t===Zr.FEEDS&&r&&(n[Zr.FEEDS][r]=i.map((e=>e.id))),t===Zr.FAVORITE&&(n[Zr.FAVORITE]=i.map((e=>e.id))),Object.assign(Object.assign({},e),{[o]:n})}}),{storiesListItemsAdded:ji}=(0,A.xP)(Xr,{storiesListItemsAdded:(e,{storiesIdsUserEntity:t,feedSlug:r,storyList:i})=>{let o=Pr.getState().user_key||"default";const n=e[o]||[],s=n.map((e=>e.id));return Object.assign(Object.assign({},e),{[o]:[...n,...i.filter((e=>-1===s.indexOf(e.id)))]})}});(0,A.sY)({from:Ti.doneData.filterMap((e=>{var t;let r=null;for(const i of e)if(i.ref&&N()(i.ref)){const e=i.ref.match(/^storyList_(.+)/);if(e&&Array.isArray(e)&&e[1]){let o=null===(t=i.body)||void 0===t?void 0:t.stories;const n=ts(e[1]);n===Kr.UGC&&(o=i.body);const s=Pi(o,n);r={storiesIdsUserEntity:Zr.FEEDS,feedSlug:e[1],storyList:s}}}if(r)return r})),to:[ji,Di]}),(0,A.sY)({from:Ti.doneData.filterMap((e=>{var t;let r=null;for(const i of e)if(i.ref&&N()(i.ref)){const e=i.ref.match(/^storyOnboardingList_(.+)/);if(e&&Array.isArray(e)&&e[1]){const o=Pi(null===(t=i.body)||void 0===t?void 0:t.stories,Kr.DEFAULT);r={storiesIdsUserEntity:Zr.FEEDS,feedSlug:`onboarding_${e[1]}`,storyList:o}}}if(r)return r})),to:[ji,Di]}),(0,A.sY)({from:Ti.doneData.filterMap((e=>{const t=e.find((e=>"storyFavoriteList"===e.ref));if(void 0===t)return;const r=Pi(t.body,Kr.DEFAULT);return{storiesIdsUserEntity:Zr.FAVORITE,feedSlug:null,storyList:r}})),to:[ji,Di]});const Bi=(0,A.EH)();Bi.use((e=>Mi(void 0,void 0,void 0,(function*(){const t=e.ids.map((t=>Ri(fi(t,e.feedSlug),`storySlides_${t}`))),r=yield Ir.post("composite",{compositeRequest:t});return r.data&&r.data.success&&r.data.compositeResponse&&Array.isArray(r.data.compositeResponse)?r.data.compositeResponse:[]}))));const Ni=e=>e&&R()(e)&&"id"in e,Ui=(0,A.EH)();Ui.use((({ids:e,id:t,feedSlug:r})=>Mi(void 0,void 0,void 0,(function*(){const i=[Ri(fi(t,r),"storySlides"),Ri(Ci(e),"storyContext")],o=yield Ir.post("composite",{compositeRequest:i});return o.data&&o.data.success&&o.data.compositeResponse&&Array.isArray(o.data.compositeResponse)?o.data.compositeResponse:[]})))),Xr.on([Bi.done,Ui.done],((e,{params:t,result:r})=>{const i=r;if(Array.isArray(i)){const r=ts(t.feedSlug),o=Pr.getState().user_key||"default",n=(e[o]||[]).slice(0).map((e=>{var t,o,n,s,a,l,d,c,u,p,f,h,g;for(let v=0;v<i.length;v++)if(Ni(null===(t=i[v])||void 0===t?void 0:t.body)&&(null===(n=null===(o=i[v])||void 0===o?void 0:o.body)||void 0===n?void 0:n.id)===e.id&&r===e.type)return Object.assign({},e,{slides_html:e.need_placeholders?Array.from(null===(a=null===(s=i[v])||void 0===s?void 0:s.body)||void 0===a?void 0:a.slides_html).map((e=>Ii(e))):Array.from(null===(d=null===(l=i[v])||void 0===l?void 0:l.body)||void 0===d?void 0:d.slides_html),slides_duration:null===(u=null===(c=i[v])||void 0===c?void 0:c.body)||void 0===u?void 0:u.slides_duration,slides_screenshot_share:null===(f=null===(p=i[v])||void 0===p?void 0:p.body)||void 0===f?void 0:f.slides_screenshot_share,slides_payload:null===(g=null===(h=i[v])||void 0===h?void 0:h.body)||void 0===g?void 0:g.slides_payload,slidesLoaded:!0,is_opened:ai(e)});return e}));return Object.assign(Object.assign({},e),{[o]:n})}return e})),(0,A.sY)({from:Ui.done.filterMap((({params:e,result:t})=>{var r;const i=null===(r=t.find((e=>"storyContext"===e.ref)))||void 0===r?void 0:r.body,o=ts(e.feedSlug);if(i&&R()(i)){const t=mi(o,e.ids);return t.widgetsData=i.widgetsData,t.style=i.style,t}})),to:_i});const Wi=(0,A.EH)((({id:e,feedSlug:t,fetchShareUrl:r})=>Mi(void 0,void 0,void 0,(function*(){var i,o;const n=[],s=null===(o=null===(i=Pr.getState())||void 0===i?void 0:i.session)||void 0===o?void 0:o.id;let a=null;Li()(s)&&(n.push(Ri(yield Hr(),"session")),a="@{session.session.id}"),n.push(Ri(fi(e,t,!0,a,r),"story")),n.push(Ri(Ci([e],a),"storyContext"));const l=yield Ir.post("composite",{compositeRequest:n});if(l.data&&l.data.success&&l.data.compositeResponse&&Array.isArray(l.data.compositeResponse))return l.data.compositeResponse;if(l.data&&!l.data.success)throw Error("composite request error:"+JSON.stringify(l.data.compositeResponse));return[]}))));(0,A.sY)({from:Wi.doneData.filterMap((e=>{var t;const r=null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body;if(r&&R()(r)&&r)return r})),to:Pr}),(0,A.sY)({from:Wi.doneData.filterMap((e=>{var t,r;return null===(r=null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body)||void 0===r?void 0:r.placeholders})),to:F}),(0,A.sY)({from:Wi.doneData.filterMap((e=>{var t,r;return null===(r=null===(t=e.find((e=>"session"===e.ref)))||void 0===t?void 0:t.body)||void 0===r?void 0:r.image_placeholders})),to:Ei}),(0,A.sY)({from:Wi.done.filterMap((({params:e,result:t})=>{var r;const i=null===(r=t.find((e=>"storyContext"===e.ref)))||void 0===r?void 0:r.body;if(i&&R()(i)){const t=ts(e.feedSlug),r=mi(t,[e.id]);return r.widgetsData=i.widgetsData,r.style=i.style,r}})),to:_i}),Xr.on(Wi.done.filterMap((({params:e,result:t})=>{var r;const i=null===(r=t.find((e=>"story"===e.ref)))||void 0===r?void 0:r.body;if(i&&R()(i))return i.type=ts(e.feedSlug),i})),((e,t)=>{if(!Ni(t))return;const r=Pr.getState().user_key||"default",i=(e[r]||[]).slice(0).filter((e=>e.id!==(null==t?void 0:t.id))).slice(0);return t=Object.assign(t,{slides_html:t.need_placeholders?Array.from(t.slides_html).map((e=>Ii(e))):Array.from(t.slides_html),slides_duration:t.slides_duration,slidesLoaded:!0,is_opened:ai(t)}),i.push(t),Object.assign(Object.assign({},e),{[r]:i})})),(0,A.XM)({source:Xr,clock:I,fn:(e,t)=>{const r={};for(const t in e)Fi.call(e,t)&&(r[t]=e[t].map((e=>Object.assign(Object.assign({},e),{slides_html:e.need_placeholders?Array.isArray(e.slides_html)?e.slides_html.map((e=>Ii(e))):e.slides_html:[]}))));return r},target:Xr});const $i=function(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}();var Gi,qi=__webpack_require__(2438),zi=__webpack_require__.n(qi);!function(e){e.START_LOADING="startLoading",e.END_LOADING="endLoading",e.CLOSE_STORY_READER="closeStoryReader"}(Gi||(Gi={}));var Hi=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Vi=(0,A.EH)((({gameInstanceId:e,gameOptions:t})=>Hi(void 0,void 0,void 0,(function*(){var r,i;(null===(i=null===(r=Pr.getState())||void 0===r?void 0:r.session)||void 0===i?void 0:i.id)||(yield Fr({}));const o={};t&&R()(t)&&null!=t.demoMode&&(o.demoMode=Boolean(t.demoMode));const n=yield Ir.post(`game/${e}/launch?expand=config`,o);if(!n.ok)throw new Error(JSON.stringify(n.data));return n.data.clientConfig=Yi(),n.data})))),Yi=()=>{let e=Pr.getState();const t=x.Tl.getState();return{sessionId:e.session.id,userKey:e.user_key,apiKey:t.apiKey,sdkVersion:"0.0.2",apiBaseUrl:q.C.apiUrl,userAgent:Mr,appPackageId:t.appPackageId,deviceId:x.Ue.getState(),userId:t.userId?t.userId:"",lang:t.lang,placeholders:ds.combinedPlaceholders}};var Ki,Qi,Xi;!function(e){e.OpenReader="openReader",e.CloseReader="closeReader",e.StartGame="startGame",e.GameComplete="gameComplete",e.WidgetLoaded="widgetLoaded"}(Ki||(Ki={})),function(e){e.OpenGameUrl="openGameUrl",e.SetOptions="setOptions",e.SetGame="setGame",e.SetError="setError",e.EventCb="eventCb",e.Close="close",e.Open="open"}(Qi||(Qi={})),function(e){e.RetryLoadingGame="retryLoadingGame",e.OpenGameUrl="openGameUrl",e.StartGame="startGame",e.GameComplete="gameComplete",e.ApiRequest="apiRequest",e.WidgetLoaded="widgetLoaded"}(Xi||(Xi={}));var Ji,Zi=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class eo{constructor(e,t){this.eventEmitter=e,this.rpc=t}callMethod(e,t){var r;null===(r=this.rpc)||void 0===r||r.callMethod("emitEvent",e,t)}on(e,t){return this.eventEmitter.on(e,t),this}}class to extends $.A{constructor(){super(...arguments),this.iframe=null}get gameInstanceId(){return this._gameInstanceId}init(e){const r=Object.create(null,{__init:{get:()=>super.__init}});return Zi(this,void 0,void 0,(function*(){this.appearanceManager=e.appearanceManager,this.clickOnButtonAction=e.clickOnButtonAction,this.handleApiRequest=e.handleApiRequest;const i={startHeight:70,minWidth:150,storiesHeight:70,fullScreen:!0,scrolling:!1,hidden:!0};return this.initAppearanceManagerEventHandlers(),new Promise(((e,o)=>{const n=new t.EventEmitter;r.__init.call(this,{},{},this.appearanceManager.gameReaderOptions,{emitEvent:(e,t)=>{e!==Xi.WidgetLoaded?n.emit(e,t):this.emit(e,t)}},i,((e,t,r)=>{this.rpcServer=new eo(n,r),this.iframe=t,this.initGameReaderEventHandlers()}),null,null,e,o)}))}))}getWidgetDocument(e,t){return`\n <script type="text/javascript" src="${`${q.C.baseUrl}/v2.10.4/dist/js/gameReader.js`}"><\/script>\n <div id="app"><div id="_app"></div></div>\n <script type="text/javascript" nonce="${t}">\n window.gameReader.init(${JSON.stringify(e)});\n <\/script>\n`}openGame(e,t={}){return Zi(this,void 0,void 0,(function*(){this._gameInstanceId=e,this.open(),yield this.launchGameById(e,t)}))}open(){var e;const t=this.iframe;t&&(t.style.setProperty("display","block"),t.style.setProperty("z-index","2147483645"),null===(e=this.rpcServer)||void 0===e||e.callMethod(Qi.Open),this.emit(Ki.OpenReader))}close(){return Zi(this,void 0,void 0,(function*(){return null!=this.rpcServer&&(this.rpcServer.callMethod(Qi.Close),new Promise(((e,t)=>{this.once(Ki.GameComplete,(()=>e(!0)))})))}))}rpcCb(e,t){var r;null===(r=this.rpcServer)||void 0===r||r.callMethod(Qi.EventCb,t)}launchGameById(e,t={}){return Zi(this,void 0,void 0,(function*(){try{this.setError(void 0);const r=yield Vi({gameInstanceId:e,gameOptions:t});this.setGame(r)}catch(e){this.setError(e)}}))}setGame(e){var t;null===(t=this.rpcServer)||void 0===t||t.callMethod(Qi.SetGame,e)}setError(e){var t;null===(t=this.rpcServer)||void 0===t||t.callMethod(Qi.SetError,e)}initAppearanceManagerEventHandlers(){this.appearanceManager.on(_.EVENT_UPDATED_GAME_READER_OPTIONS,(e=>this.setOptions(e)))}setOptions(e){var t;null===(t=this.rpcServer)||void 0===t||t.callMethod(Qi.SetOptions,e)}initGameReaderEventHandlers(){var e;null===(e=this.rpcServer)||void 0===e||e.on(Xi.OpenGameUrl,(e=>this.handleOpenGameUrl(e))).on(Xi.RetryLoadingGame,(()=>{this.gameInstanceId&&this.launchGameById(this.gameInstanceId)})).on(Xi.ApiRequest,(e=>this.handleApiRequest(e,this))).on(Xi.StartGame,(e=>this.emit(Ki.StartGame,e))).on(Xi.GameComplete,(e=>this.handleCloseGame(e)))}handleCloseGame(e){var t,r;window.focus(),null===(t=this.iframe)||void 0===t||t.style.setProperty("display","none"),null===(r=this.browserHistory)||void 0===r||r.destroy(),this.emit(Ki.CloseReader),this.emit(Ki.GameComplete,e)}handleOpenGameUrl({url:e,gameInstanceId:t}){const r={url:e,gameInstanceId:t};this.clickOnButtonAction(r)}}!function(e){e.STORY_LIST="storyList",e.STORY_READER="storyReader",e.GAME_READER="gameReader"}(Ji||(Ji={}));var ro=__webpack_require__(3643);const io=__webpack_require__.n(ro)().getParser(window.navigator.userAgent).parse();function oo(e){return!/^(-?\d|--)/.test(e)}function no(e){const t=[];let r="",i="",o=7;for(let n,s=0;n=e.charAt(s);s++)if(/[a-zA-Z\d\xa0-\uffff_-]/.test(n)&&7===o)r+=n;else if("\\"===n&&7===o)o=6;else if(" "===n&&7===o){if(""!==r){if(!oo(r))return null;t.push(r),r=""}}else if(6===o)/[0-9a-f]/i.test(n)?(i+=n,o=8):(r+=n,o=7);else{if(8!==o)return null;/[0-9a-f]/i.test(n)&&i.length<6?i+=n:(r+=String.fromCodePoint(parseInt(i,16)),r+=n,i="",o=7)}if(""!==r){if(!oo(r))return null;t.push(r)}return t.join(" ")}function so(e,t){let r=t,i="";const o={"font-family":[]};for(let t,n=0;t=e.charAt(n);n+=1)if(4!==r||'"'!==t&&"'"!==t)if(3===r&&","===t)r=4,i="";else if(4===r&&","===t){const e=no(i);e&&o["font-family"].push(e),i=""}else if(5===r&&" "===t)/^(?:\+|-)?(?:[0-9]*\.)?[0-9]+(?:deg|grad|rad|turn)$/.test(i)?(o["font-style"]+=" "+i,i=""):n-=1,r=1;else if(1!==r||" "!==t&&"/"!==t)2===r&&" "===t?(/^(?:\+|-)?([0-9]*\.)?[0-9]+(?:em|ex|ch|rem|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc|%)?$/.test(i)&&(o["line-height"]=i),r=4,i=""):i+=t;else{if(/^(?:(?:xx|x)-large|(?:xx|s)-small|small|large|medium)$/.test(i)||/^(?:larg|small)er$/.test(i)||/^(?:\+|-)?(?:[0-9]*\.)?[0-9]+(?:em|ex|ch|rem|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc|%)$/.test(i))r="/"===t?2:4,o["font-size"]=i;else if(/^italic$/.test(i))o["font-style"]=i;else if(/^oblique$/.test(i))o["font-style"]=i,r=5;else if(/^small-caps$/.test(i))o["font-variant"]=i;else if(/^(?:bold(?:er)?|lighter|normal)$/.test(i))o["font-weight"]=i;else if(/^[+-]?(?:[0-9]*\.)?[0-9]+(?:e[+-]?(?:0|[1-9][0-9]*))?$/.test(i)){const e=parseFloat(i);e>=1&&e<=1e3&&(o["font-weight"]=i)}else/^(?:(?:ultra|extra|semi)-)?(?:condensed|expanded)$/.test(i)&&(o["font-stretch"]=i);i=""}else{let s=n+1;do{if(s=e.indexOf(t,s)+1,!s)return null}while("\\"===e.charAt(s-2));o["font-family"].push(e.slice(n+1,s-1).replace(/\\('|")/g,"$1")),n=s-1,r=3,i=""}if(3===r&&!/^\s*$/.test(i))return null;if(4===r){const e=no(i);e&&o["font-family"].push(e)}return o}var ao=__webpack_require__(4855),lo=__webpack_require__.n(ao);class co{toString(){return`${this.fontStyle} ${this.fontVariant} ${this.fontWeight} ${this.fontSize}px/${this.lineHeight} ${this.fontFamily.join(", ")}`}clone(){const e=new co;return e.fontStyle=this.fontStyle,e.fontVariant=this.fontVariant,e.fontWeight=this.fontWeight,e.fontSize=this.fontSize,e.lineHeight=this.lineHeight,e.fontFamily=this.fontFamily.slice(),e}}class uo{constructor(e,t){this.obj=e,this.cardTitleOptions=t,this.cardTitleFont=this.getCardTitleParsedFont(t.font)}getCardTitleFont(){return this.cardTitleFont.clone()}getScaledFontSizeInWebView(){const e=this.measureScaledFontSizeInWebView(this.cardTitleFont.fontSize)/this.cardTitleFont.fontSize;return this.cardTitleFont.fontSize/e}getStoryTitleBlockHeight(){if(!this.isOutsideTitle())return 0;const e=this.cardTitleOptions.padding;let t={top:0,bottom:0};try{if("number"==typeof e)t.top=e,t.bottom=e;else{const r=lo()(e);t.top=parseFloat(r.top),t.bottom=parseFloat(r.bottom)}}catch(e){console.error(e)}const r=this.cardTitleOptions.lineClamp,i=Math.round(this.cardTitleFont.fontSize*this.cardTitleFont.lineHeight*100)/100;return t.top+t.bottom+r*i}measureScaledFontSizeInWebView(e){const t=document.createElement("span");t.style.fontSize=e+"px",t.style.display="none",this.obj.append(t);const r=getComputedStyle(t).fontSize;return this.obj.removeChild(t),parseFloat(r)||e}isOutsideTitle(){return this.cardTitleOptions.display&&(this.cardTitleOptions.position===s.CARD_OUTSIDE_TOP||this.cardTitleOptions.position===s.CARD_OUTSIDE_BOTTOM)}getCardTitleParsedFont(e){const t=new co;t.fontStyle="normal",t.fontVariant="normal",t.fontWeight="normal",t.fontSize=14,t.lineHeight=1.2,t.fontFamily=["system-ui",'"Segoe UI"',"Roboto","Helvetica","Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'];try{const r=function(e){const t=so(e,1);return null!==t&&t["font-size"]&&t["font-family"].length?t:null}(e);if(null!=r["font-style"]&&(t.fontStyle=r["font-style"]),null!=r["font-variant"]&&(t.fontVariant=r["font-variant"]),null!=r["font-weight"]&&(t.fontWeight=r["font-weight"]),null!=r["font-size"]){const e=parseFloat(r["font-size"]);String(`${e}px`)===r["font-size"]&&(t.fontSize=e)}if(null!=r["line-height"]){const e=parseFloat(r["line-height"]);String(`${e}px`)===r["line-height"]?t.lineHeight=Math.round(e/t.fontSize*100)/100:String(e)===r["line-height"]&&(t.lineHeight=parseFloat(r["line-height"]))}null!=r["font-family"]&&Array.isArray(r["font-family"])&&(t.fontFamily=r["font-family"])}catch(e){console.error(e)}return t}}class po{constructor(e){this.storiesListOptions=e}getStoriesListStyleOptions(e){var t,r,i,o,n,s;let a={storiesHeight:null!==(r=null===(t=this.storiesListOptions.card)||void 0===t?void 0:t.height)&&void 0!==r?r:70,storiesLayoutHeight:null!==(o=null===(i=this.storiesListOptions.layout)||void 0===i?void 0:i.height)&&void 0!==o?o:0,storiesListTopPadding:null!==(n=this.storiesListOptions.topPadding)&&void 0!==n?n:0,storiesListBottomPadding:null!==(s=this.storiesListOptions.bottomPadding)&&void 0!==s?s:0},l=parseFloat(a.storiesHeight),d=l;if(parseFloat(a.storiesLayoutHeight))return l=parseFloat(a.storiesLayoutHeight),{storiesListHeight:l,storiesListInnerHeight:d};return l+=parseFloat(a.storiesListTopPadding)+parseFloat(a.storiesListBottomPadding)+e,d+=e,{storiesListHeight:l,storiesListInnerHeight:d}}}const fo=/[\r\n%#()<>?[\\\]^`{|}]/g;function ho(e,t="double"){return(e=(e=(e="double"===t?e.replace(/"/g,"'"):e.replace(/'/g,'"')).replace(/>\s{1,}</g,"><")).replace(/\s{2,}/g," ")).replace(fo,encodeURIComponent)}const go=e=>!isNaN(parseFloat(e))&&isFinite(e),vo=(0,K.forwardRef)(((e,t)=>{const r=e.sliderOptions.card,i=r.border,o=r.opened.border,n=e.sliderOptions.navigation,s=()=>{var e,t,r;return(null!==(e=o.radius)&&void 0!==e?e:i.radius)-parseFloat(null!==(t=o.width)&&void 0!==t?t:i.width)/2-parseFloat(null!==(r=o.gap)&&void 0!==r?r:i.gap)};return Ot("div",{ref:t,className:e.className,style:Object.assign(Object.assign({},(()=>{var t,a,l,d,c,u,p,f,h,g,v,m,y,_,b,w,S,C,k,O,L;const x=e=>{let t="";return null!=e&&Array.isArray(e.linearGradient)&&(t=e.linearGradient.map((({direction:e,points:t})=>`linear-gradient(${[e,t].filter(Boolean).join(", ")})`)).join(", ")),t};let A={"--storiesBorderNotReadColor":i.color,"--storiesBorderReadColor":null!==(t=o.color)&&void 0!==t?t:i.color,"--storiesBorderNotReadGradientColor":null==i?void 0:i.gradient,"--storiesBorderReadGradientColor":null!==(a=null==o?void 0:o.gradient)&&void 0!==a?a:null==i?void 0:i.gradient,"--storiesListCardFavoriteGradientColor":null===(l=e.sliderOptions.favoriteCard.border)||void 0===l?void 0:l.gradient,"--storiesListCardUgcGradientColor":null===(d=e.sliderOptions.ugcCard.border)||void 0===d?void 0:d.gradient,"--storiesGap":r.gap+"px","--storiesHeight":r.height+"px","--storiesListSidePadding":e.sliderOptions.sidePadding+"px","--storiesListBorderNotReadWidth":i.width+"px","--storiesListBorderReadWidth":(null!==(c=o.width)&&void 0!==c?c:o.width)+"px","--storiesListBorderGapNotRead":i.gap+"px","--storiesListBorderGapRead":(null!==(u=o.gap)&&void 0!==u?u:o.gap)+"px","--storiesListBorderRadius":i.radius+"px","--storiesListBorderRadiusRead":(null!==(p=o.radius)&&void 0!==p?p:o.radius)+"px","--storiesListItemMaskColor":r.mask.color,"--storiesListItemOpenedMaskColor":null!==(f=r.opened.mask.color)&&void 0!==f?f:r.mask.color,"--storiesListItemMaskLinearGradient":x(r.mask),"--storiesListItemOpenedMaskLinearGradient":x(null!=(null===(g=null===(h=r.opened)||void 0===h?void 0:h.mask)||void 0===g?void 0:g.linearGradient)?r.opened.mask:r.mask),"--storiesListCardUgcMaskColor":e.sliderOptions.ugcCard.mask.color,"--storiesListCardUgcMaskLinearGradient":x(e.sliderOptions.ugcCard.mask),"--storiesListItemTitleColor":r.title.color,"--storiesListItemTitleFontFamily":"InternalPrimaryFont","--storiesListItemTitleFont":r.title.font,"--storiesListItemTitlePadding":go(r.title.padding)?r.title.padding+"px":r.title.padding,"--storiesListControlsSize":go(n.controlsSize)?n.controlsSize+"px":n.controlsSize,"--storiesListControlsBackgroundColor":n.controlsBackgroundColor,"--storiesListControlsColor":n.controlsColor,"--storiesListInnerBorderRadiusNotRead":i.radius-parseFloat(i.width)/2-parseFloat(i.gap)+"px","--storiesListInnerBorderRadiusRead":s()+"px","--storiesListCardDropShadow":r.dropShadow,"--storiesListCardOpenedDropShadow":null!==(v=r.opened.dropShadow)&&void 0!==v?v:r.dropShadow,"--storiesListCardFavoriteDropShadow":e.sliderOptions.favoriteCard.dropShadow,"--storiesListCardUgcDropShadow":e.sliderOptions.ugcCard.dropShadow,"--storiesListCardMask":(null===(m=r.svgMask)||void 0===m?void 0:m.cardMask)?`url("data:image/svg+xml,${ho(null===(y=r.svgMask)||void 0===y?void 0:y.cardMask)}")`:null,"--storiesListCardOpenedMask":(null===(_=r.opened.svgMask)||void 0===_?void 0:_.cardMask)?`url("data:image/svg+xml,${ho(null===(b=r.opened.svgMask)||void 0===b?void 0:b.cardMask)}")`:null,"--storiesListCardFavoriteMask":(null===(w=e.sliderOptions.ugcCard.svgMask)||void 0===w?void 0:w.cardMask)?`url("data:image/svg+xml,${ho(null===(S=e.sliderOptions.ugcCard.svgMask)||void 0===S?void 0:S.cardMask)}")`:null},E=null;return E=null===(C=r.svgMask)||void 0===C?void 0:C.overlayMask,null!=E&&Array.isArray(E)&&E.forEach(((e,t)=>A[`--storiesListCardOverlay${t}Mask`]=e.mask?`url("data:image/svg+xml,${ho(e.mask)}")`:null)),E=null===(k=r.opened.svgMask)||void 0===k?void 0:k.overlayMask,null!=E&&Array.isArray(E)&&E.forEach(((e,t)=>A[`--storiesListCardOpenedOverlay${t}Mask`]=e.mask?`url("data:image/svg+xml,${ho(e.mask)}")`:null)),E=null===(O=e.sliderOptions.favoriteCard.svgMask)||void 0===O?void 0:O.overlayMask,null!=E&&Array.isArray(E)&&E.forEach(((e,t)=>A[`--storiesListCardFavoriteOverlay${t}Mask`]=e.mask?`url("data:image/svg+xml,${ho(e.mask)}")`:null)),E=null===(L=e.sliderOptions.ugcCard.svgMask)||void 0===L?void 0:L.overlayMask,null!=E&&Array.isArray(E)&&E.forEach(((e,t)=>A[`--storiesListCardUgcOverlay${t}Mask`]=e.mask?`url("data:image/svg+xml,${ho(e.mask)}")`:null)),A})()),e.style),children:e.children})})),mo=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&-1==navigator.userAgent.indexOf("CriOS")&&-1==navigator.userAgent.indexOf("FxiOS"),yo=({videoCoverSrc:e,onVideoCoverLoaded:t})=>{const r=(0,K.useRef)(null);return(0,K.useEffect)((()=>{(()=>{if(!e)return;const i=r.current,o=()=>{i.play().then((()=>{if(mo){let e=1;const r=()=>{e>=2&&(i.removeEventListener("timeupdate",r),i.currentTime=0,t()),e++};i.addEventListener("timeupdate",r,!1)}else t()})).catch((e=>{console.error(e)})),i.removeEventListener("canplaythrough",o)};i.addEventListener("canplaythrough",o),i.load()})()}),[]),Ot("video",{ref:r,src:e,loop:!0,muted:!0,playsInline:!0,"webkit-playsinline":"true",preload:"auto"})};var _o,bo,wo,So,Co=__webpack_require__(3373),ko=__webpack_require__.n(Co);!function(e){e.LEFT="left",e.RIGHT="right"}(_o||(_o={})),function(e){e.FLAT="flat",e.COVER="cover",e.CUBE="cube"}(bo||(bo={})),function(e){e.CIRCLE="circle",e.QUAD="quad",e.RECTANGLE="rectangle"}(wo||(wo={})),function(e){e.STYLE_CIRCLE="circle",e.STYLE_QUAD="quad",e.STYLE_RECTANGLE="rectangle",e.SWIPE_CUBE="cube",e.SWIPE_FLAT="flat",e.SWIPE_COVER="cover",e.CLOSE_BUTTON_LEFT="left",e.CLOSE_BUTTON_RIGHT="right"}(So||(So={}));_o.RIGHT,bo.FLAT,wo.CIRCLE,wo.CIRCLE;var Oo=__webpack_require__(2591),Lo=__webpack_require__.n(Oo),xo=__webpack_require__(4430),Ao={insert:"head",singleton:!1};Lo()(xo.A,Ao);const Eo=xo.A.locals||{},Mo=({storyListViewModel:e})=>{const t=e.cardOptions.variant,r=({src:e,color:t})=>{const r={};return e?r.backgroundImage=`url('${e}')`:r.backgroundColor=t,r};return Ot("div",{className:Eo["favorite-images-wrapper"],children:e.favoriteStoryImages.map(((e,i)=>Ot("div",{className:Eo["favorite-image-wrapper"],children:Ot("div",{style:{paddingTop:t===So.STYLE_RECTANGLE?"125%":"100%"},className:ko()(Eo["favorite-image"],{[Eo.circle_style]:t===So.STYLE_CIRCLE}),children:Ot("div",{className:Eo["favorite-image-item"],style:r(e)})})},i)))})},To=({story:e,storyListViewModel:t})=>{const r=t.cardOptions,i=t.options.favoriteCard,o=t.options.ugcCard,n=(e,t)=>null!=t&&Array.isArray(t)?t.map(((t,r)=>s(t,e,r))):[],s=(e,t,r)=>({maskImage:`var(--${t}${r}Mask)`,WebKitMaskImage:`var(--${t}${r}Mask)`,background:e.background});return{getAllCardsOverlayMaskStyles:()=>{let t=[];var s;return e.favorite_cell&&(t=t.concat(n("storiesListCardFavoriteOverlay",null===(s=i.svgMask)||void 0===s?void 0:s.overlayMask))),t=e.ugc_card_cell?t.concat((()=>{var e;return n("storiesListCardUgcOverlay",null===(e=o.svgMask)||void 0===e?void 0:e.overlayMask)})()):e.isOpened?t.concat((()=>{var e;return n("storiesListCardOpenedOverlay",null===(e=r.opened.svgMask)||void 0===e?void 0:e.overlayMask)})()):t.concat((()=>{var e;return n("storiesListCardOverlay",null===(e=r.svgMask)||void 0===e?void 0:e.overlayMask)})()),t}}};var Ro=__webpack_require__(2015),Io={insert:"head",singleton:!1};Lo()(Ro.A,Io);const Po=Ro.A.locals||{},Fo=({index:e,isScrolling:t,wrapperStyle:r,story:i,storyListViewModel:o})=>{const s={story:i,storyListViewModel:o},[a,l]=(0,K.useState)(!1),{getAllCardsOverlayMaskStyles:d}=To(s),{getCardTitleAlignClass:c,getTitleStyle:u,getTitleWrapperStyle:p}=(({story:e,storyListViewModel:t})=>{const r=t.cardOptions,i=t.options.favoriteCard,o=t.options.ugcCard;return{getCardTitleAlignClass:()=>({[Po["align-left"]]:r.title.textAlign===n.LEFT,[Po["align-center"]]:r.title.textAlign===n.CENTER,[Po["align-right"]]:r.title.textAlign===n.RIGHT}),getTitleStyle:()=>{let i={};return e.title_color&&t.isTitleCardInner&&Object.assign(i,{color:e.title_color}),i.WebkitLineClamp=String(parseInt(r.title.lineClamp)),i},getTitleWrapperStyle:()=>{let t={};return e.title_color&&e.favorite_cell&&(t=Object.assign(Object.assign({},t),{color:i.title.color})),e.title_color&&e.ugc_card_cell&&(t=Object.assign(Object.assign({},t),{color:o.title.color})),t}}})(s),{getSlideClassList:f,getSlideStyleList:h,getSlideWrapperStyle:g}=(({story:e,storyListViewModel:t})=>{const r=t.cardAspectRatio,i=t.cardOptions,o=t.options.favoriteCard,n=t.options.ugcCard;return{getSlideClassList:()=>{var t,r,s,a,l,d,c,u,p,f;const h=e.background;let g="";void 0!==h&&(g=Po[`_background-color-${h.color}`+(!0===h.gradient?"-gradient":"")]);let v=!1,m=!1,y=!1;return e.favorite_cell?(v=Boolean(o.dropShadow),m=null!=(null===(t=o.svgMask)||void 0===t?void 0:t.cardMask),y=null!=(null===(r=o.border)||void 0===r?void 0:r.gradient)):e.ugc_card_cell?(v=Boolean(n.dropShadow),m=null!=(null===(s=n.svgMask)||void 0===s?void 0:s.cardMask),y=null!=(null===(a=n.border)||void 0===a?void 0:a.gradient)):e.isOpened?(v=Boolean(null!=i.opened.dropShadow?i.opened.dropShadow:i.dropShadow),m=null!=(null===(l=i.opened.svgMask)||void 0===l?void 0:l.cardMask),y=Boolean(null!=(null===(d=i.opened.border)||void 0===d?void 0:d.gradient)?null===(c=i.opened.border)||void 0===c?void 0:c.gradient:null===(u=i.border)||void 0===u?void 0:u.gradient)):(v=Boolean(i.dropShadow),m=null!=(null===(p=i.svgMask)||void 0===p?void 0:p.cardMask),y=null!=(null===(f=i.border)||void 0===f?void 0:f.gradient)),[Po.backgroundClass,{[Po["_is-read"]]:e.isOpened},{[Po["_format-rectangle"]]:i.variant===So.STYLE_RECTANGLE},{[Po["_format-circle"]]:i.variant===So.STYLE_CIRCLE},{[Po["_format-quad"]]:i.variant===So.STYLE_QUAD},{[Po["_favorite-cell"]]:e.favorite_cell},{[Po["_ugc-cell"]]:e.ugc_card_cell},{[Po["_has-drop-shadow"]]:v},{[Po["_has-card-svg-mask"]]:m},{[Po["_has-border-gradient-color"]]:y}]},getSlideStyleList:()=>{let t={width:"0px",opacity:1,boxShadow:"unset",height:`${i.height}px`};return t.width=r*i.height+"px",null!==i.boxShadow&&(t.boxShadow=i.boxShadow),null!==i.opacity&&(t.opacity=i.opacity),e.isOpened&&(null!==i.opened.boxShadow&&(t.boxShadow=i.opened.boxShadow),null!==i.opened.opacity&&(t.opacity=i.opened.opacity)),t},getSlideWrapperStyle:()=>{let e={};return e.width=r*i.height+"px",e}}})(s),v=o.getImageSrcByStory(i);return Lt("a",{"data-id":i.id,className:ko()(Po["stories-slide-wrapper"],{[Po.isTitleCardOutsideTop]:o.isTitleCardOutsideTop,[Po.isTitleCardOutsideBottom]:o.isTitleCardOutsideBottom}),style:Object.assign(Object.assign({},g()),r),rel:"noreferrer",onClick:r=>{t||(r.stopPropagation(),r.preventDefault(),o.onStoryClick(i,e))},children:[o.cardOptions.title.display&&o.isTitleCardOutsideTop&&Ot("div",{className:ko()(Po["stories-slide__content"],Po[" __position_outside_top"]),style:p(),children:Ot("div",{className:ko()(Po["stories-slide__title clamp"],c()),style:u(),children:i.title})}),Lt("div",{className:ko()(Po["stories-slide"],f()),style:h(),children:[Lt("div",{className:Po["stories-slide__inner"],children:[Ot("div",{className:Po["stories-slide-image"],style:{backgroundColor:i.background_color?i.background_color:"transparent"},children:Ot("div",{className:Po["stories-slide-image__wrap"],children:Lt("div",{className:ko()(Po["stories-slide-image__image"],Po._mode_list,{[Po["video-loaded"]]:a,[Po["ugc-card-cell"]]:i.ugc_card_cell}),children:[v&&Ot("img",{src:v,alt:i.title,loading:o.cardOptions.coverLazyLoading?"lazy":"eager"}),i.videoCoverSrc&&Ot(yo,{onVideoCoverLoaded:()=>l(!0),videoCoverSrc:i.videoCoverSrc}),i.favorite_cell&&Ot(Mo,{storyListViewModel:o})]})})}),Ot("div",{className:Po["stories-slide__mask"]}),o.cardOptions.title.display&&o.isTitleCardInner&&Ot("div",{className:Po["stories-slide__content"],style:p(),children:Ot("div",{className:ko()(Po["stories-slide__title clamp"],c()),style:u(),children:i.title})})]}),d().map(((e,t)=>Ot("div",{style:e,className:Po["card-overlay-svg-mask"]},t)))]}),o.cardOptions.title.display&&o.isTitleCardOutsideBottom&&Ot("div",{className:ko()(Po["stories-slide__content"],Po.__position_outside_bottom),style:p(),children:Ot("div",{className:ko()(Po["stories-slide__title clamp"],c()),style:u(),children:i.title})})]})};var Do=__webpack_require__(2784),jo=__webpack_require__.n(Do);const Bo={addEventListeners(e,t,r){for(var i=0,o=t.length;i<o;i++)e.addEventListener(t[i],r,{passive:!1})},removeEventListeners(e,t,r){for(var i=0,o=t.length;i<o;i++)e.removeEventListener(t[i],r,{passive:!1})},emitEvent:function(e,t,r){if(e.componentInstance)e.componentInstance.$emit(t,r);else{let i;"function"==typeof window.CustomEvent?i=new window.CustomEvent(t,{detail:r}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(t,!0,!0,r)),e.elm.dispatchEvent(i)}},addOnceEventListener:function(e,t,r,i){var o=n=>{r(n),e.removeEventListener(t,o,i)};e.addEventListener(t,o,i)}},No=Bo,Uo=["mousedown","touchstart"],Wo=["mousemove","touchmove"],$o=["mouseup","touchend"],Go=["scroll"];var qo;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(qo||(qo={}));class zo extends t.EventEmitter{get slides(){return Array.from(this.slider.children)}get elementRef(){return this.slider}get reachBeginning(){return this._reachBeginning}get reachEnd(){return this._reachEnd}get scrollWidth(){return this.slider.scrollWidth}constructor(){super(),this.isScrolling=!1,this.isDragging=!1,this.currentPosition={x:0,y:0},this.direction=qo.Horizontal,this.gap=20,this.rafId=0,this.lastClientX=0,this.lastClientY=0,this.pushed=!1,this.startClientX=0,this.startClientY=0,this._reachBeginning=!0,this._reachEnd=!1,this.desktopMode=!0,this.handleNativeScrollEnd=jo()((function(){this.emit("scrollend",this.currentPosition),this.isScrolling=!1}),300,{leading:!1}),this.handleNativeScroll=this.handleNativeScroll.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this)}mount(e){this.slider=e,No.addEventListeners(this.slider,Uo,this.handleMouseDown),No.addEventListeners(this.slider,Go,this.handleNativeScroll)}destroy(){this.removeAllListeners(),No.removeEventListeners(this.slider,Uo,this.handleMouseDown),No.removeEventListeners(window,$o,this.handleMouseUp),No.removeEventListeners(window,Wo,this.handleMouseMove),No.removeEventListeners(this.slider,Go,this.handleNativeScroll)}getLength(){var e,t;return null!==(t=null===(e=this.slider)||void 0===e?void 0:e.children.length)&&void 0!==t?t:0}getTranslate(){return this.direction===qo.Horizontal?this.currentPosition.x:this.currentPosition.y}getCurrentPosition(){return this.currentPosition}changeDirection(e){this.direction=e}setGap(e){this.gap=e}setDesktopMode(e){this.desktopMode=e}getGap(){return this.gap}scrollTo(e,t=300){const r=this.preparePosition(e,e);cancelAnimationFrame(this.rafId),t>0?this.scrollWithAnimation(r.x,r.y,t):(this.scrollToImmediately(r.x,r.y),this.emit("scrollend",this.currentPosition))}getSlidesPerView(){if(this.direction===qo.Horizontal&&this.slider.clientWidth){const e=this.slider.children[0].clientWidth+this.gap;return Math.round(this.slider.clientWidth/e)}if(this.direction===qo.Vertical&&this.slider.clientHeight){const e=this.slider.children[0].clientHeight+this.gap;return Math.round(this.slider.clientHeight/e)}return 1}handleMouseDown(e){if(!this.desktopMode)return;const t=e instanceof window.MouseEvent;this.pushed=!0,this.lastClientX=t?e.clientX:e.touches[0].clientX,this.lastClientY=t?e.clientY:e.touches[0].clientY,this.startClientX=this.lastClientX,this.startClientY=this.lastClientY,No.addEventListeners(window,$o,this.handleMouseUp),No.addEventListeners(window,Wo,this.handleMouseMove)}handleMouseUp(){this.pushed&&(this.pushed=!1,this.isDragging=!1,this.emit("scrollend",this.currentPosition),No.removeEventListeners(window,$o,this.handleMouseUp),No.removeEventListeners(window,Wo,this.handleMouseMove))}handleMouseMove(e){if(e.preventDefault(),!this.pushed)return;const t=e instanceof window.MouseEvent;let r,i;r=-this.lastClientX+(this.lastClientX=t?e.clientX:e.touches[0].clientX),i=-this.lastClientY+(this.lastClientY=t?e.clientY:e.touches[0].clientY);const o=Math.abs(this.startClientX-this.lastClientX),n=Math.abs(this.startClientY-this.lastClientY);!this.isDragging&&(o>=1||n>=1)&&(this.emit("scrollstart",this.currentPosition),this.isDragging=!0);const{x:s,y:a}=this.preparePosition(this.currentPosition.x-r,this.currentPosition.y-i);this.scrollToImmediately(s,a)}handleNativeScroll(e){this.isDragging||(this.isScrolling||(this.emit("scrollstart",this.currentPosition),this.isScrolling=!0),this.scrollToImmediately(this.slider.scrollLeft,this.slider.scrollTop),this.handleNativeScrollEnd())}scrollToImmediately(e,t){this.currentPosition.x=e,this.currentPosition.y=t,this.slider.scrollLeft=e,this.slider.scrollTop=t,this.testAttraction(),this.emit("scroll",this.currentPosition)}scrollWithAnimation(e=0,t=0,r=0){const i=performance.now(),o=e=>e*e,n=this.getTranslate(),s=e-this.currentPosition.x,a=t-this.currentPosition.y;if(Math.abs(s)<=1&&Math.abs(a)<=1)return;const l=()=>{this.rafId=requestAnimationFrame((d=>{const c=(d-i)/r;if(c>=1)return this.scrollToImmediately(e,t),void this.emit("scrollend",this.currentPosition);const u=o(c)*s+n,p=o(c)*a+n;this.scrollToImmediately(u,p),l()}))};l()}preparePosition(e,t){let r={x:e,y:t};return this.direction===qo.Horizontal?r.y=0:r.x=0,r=this.attractToBounds(r.x,r.y),r}attractToBounds(e,t){const r={x:e,y:t};return r.x=this.attractToBoundsByX(e),r.y=this.attractToBoundsByY(t),r}attractToBoundsByX(e){let t=e;return t<=0&&(t=0),t+this.slider.clientWidth>=this.slider.scrollWidth&&(t=this.slider.scrollWidth-this.slider.clientWidth),t}attractToBoundsByY(e){let t=e;return t<=0&&(t=0),t+this.slider.clientHeight>=this.slider.scrollHeight&&(t=this.slider.scrollHeight-this.slider.clientHeight),t}testAttraction(){this._reachBeginning=!1,this._reachEnd=!1,this.direction===qo.Horizontal?(0===this.currentPosition.x&&(this._reachBeginning=!0),this.currentPosition.x+this.slider.clientWidth>=this.slider.scrollWidth&&(this._reachEnd=!0)):(0===this.currentPosition.y&&(this._reachBeginning=!0),this.currentPosition.y+this.slider.clientHeight>=this.slider.scrollHeight&&(this._reachEnd=!0))}}var Ho=__webpack_require__(4037),Vo={insert:"head",singleton:!1};Lo()(Ho.A,Vo);const Yo=Ho.A.locals||{},Ko=({sliderDirection:e,slider:t})=>{const[r,i]=(0,K.useState)(!0),[o,n]=(0,K.useState)(!1);(0,K.useEffect)((()=>(t.addListener("scroll",s),()=>{t.removeListener("scroll",s)})),[t]);const s=()=>{i(t.reachBeginning),n(t.reachEnd)},a=r=>{var i,o;const n=t.getSlidesPerView(),s=t.getTranslate(),a=(null===(i=t.slides[0])||void 0===i?void 0:i.clientWidth)+t.getGap(),l=(null===(o=t.slides[0])||void 0===o?void 0:o.clientHeight)+t.getGap(),d=s+r*n*(e===qo.Horizontal?a:l);t.scrollTo(d,300)};return Ot("div",{className:Yo["stories-list-controls"],children:e===qo.Horizontal?Lt(kt,{children:[Ot("div",{onClick:()=>a(-1),className:ko()(Yo.control,Yo["control-left"],{active:r}),children:Ot("div",{className:Yo["control-icon"]})}),Ot("div",{onClick:()=>a(1),className:ko()(Yo.control,Yo["control-right"],{active:o}),children:Ot("div",{className:Yo["control-icon"]})})]}):Lt(kt,{children:[Ot("div",{onClick:()=>a(-1),className:ko()(Yo.control,Yo["control-top"],{active:r}),children:Ot("div",{className:Yo["control-icon"]})}),Ot("div",{onClick:()=>a(1),className:ko()(Yo.control,Yo["control-bottom"],{active:o}),children:Ot("div",{className:Yo["control-icon"]})})]})})},Qo=e=>{const[t,r]=(0,K.useState)(!1),[i,o]=(0,K.useState)(null),{ref:n}=(e=>{const t=(0,K.useRef)(null);return(0,K.useEffect)((()=>{if(!t.current)return;const r=new zo;return r.mount(t.current),e(r),()=>{r.destroy()}}),[]),{ref:t}})((e=>{o(e),e.addListener("scrollstart",(()=>r(!0))),e.addListener("scrollend",(()=>setTimeout((()=>r(!1)),100)))}));return(0,K.useEffect)((()=>{i&&(i.setGap(e.options.card.gap),i.setDesktopMode(e.modeDesktop),i.changeDirection(e.options.direction))}),[i,e.options.card.gap,e.modeDesktop,e.options.direction]),{sliderRef:n,slider:i,isScrolling:t}};var Xo=__webpack_require__(6599),Jo={insert:"head",singleton:!1};Lo()(Xo.A,Jo);const Zo=Xo.A.locals||{};class en{constructor(e=0,t=0,r=0,i=0){this.x=e,this.y=t,this.width=r,this.height=i}overlaps(e){return this.x+this.width>=e.x&&this.x<=e.x+e.width&&this.y+this.height>=e.y&&this.y<=e.y+e.height}getIntersection(e){const t=Math.min(this.x+this.width,e.x+e.width),r=Math.max(this.x,e.x),i=Math.min(this.y+this.height,e.y+e.height),o=Math.max(this.y,e.y);return new en(Math.min(t,r),Math.min(i,o),Math.max(0,t-r),Math.max(0,i-o))}getArea(){return this.width*this.height}getAreaFraction(e){return+(this.getArea()/e.getArea()*100).toFixed(2)}static clone(e){return new en(e.x,e.y,e.width,e.height)}}class tn extends t.EventEmitter{calculate(e){const t=e.map((({id:e,areaFraction:t})=>({storyId:e,visibleArea:Math.round(t)/100})));0!==t.length&&this.emit("visibleAreaUpdated",t)}}class rn extends t.EventEmitter{constructor(){super(...arguments),this.storiesIds=new Set,this.getNewStoriesIds=e=>{const t=[];for(const r of e)this.storiesIds.has(r)||t.push(r);return t}}markStoryAsFullVisible(e){this.storiesIds.has(e)||(this.storiesIds.add(e),this.emit("flushThumbViews",[e]))}calculate(e){const t=this.getNewStoriesIds(e.map((({id:e})=>e)));t.forEach((e=>this.storiesIds.add(e))),0!==t.length&&this.emit("flushThumbViews",t)}}class on extends t.EventEmitter{constructor(){super(),this.storyRects=[],this.viewport=new en,this.feedImpressionMetric=new rn,this.visibleAreaMetric=new tn,this.filterStoryRectIntersections=e=>e.filter((e=>-100!==e.id&&e.areaFraction>0)),this.feedImpressionMetric.on("flushThumbViews",(e=>this.emit("flushThumbViews",e))),this.visibleAreaMetric.on("visibleAreaUpdated",(e=>this.emit("visibleAreaUpdated",e)))}calculate(e){const t=this.getScrollViewportByCalculationParams(e),r=this.getStoryRectIntersectionsWithViewport(t),i=this.filterStoryRectIntersections(r);this.calculateMetrics(i)}setViewport(e){this.viewport=e}setStoryRects(e){this.storyRects=e}markStoryAsFullVisible(e){this.feedImpressionMetric.markStoryAsFullVisible(e)}destroy(){this.removeAllListeners()}getScrollViewportByCalculationParams(e){const t=en.clone(this.viewport);return t.x+=e.minOffsetLeft,t.y+=e.minOffsetTop,t.width+=e.maxOffsetLeft-e.minOffsetLeft,t.height+=e.maxOffsetTop-e.minOffsetTop,t}calculateMetrics(e){this.feedImpressionMetric.calculate(e),this.visibleAreaMetric.calculate(e)}getStoryRectIntersectionsWithViewport(e){const t=[];for(const r of this.storyRects)if(r.overlaps(e)){const i=r.getIntersection(e);t.push({id:r.id,areaFraction:i.getAreaFraction(r)})}else t.push({id:r.id,areaFraction:0});return t}}class nn extends en{constructor(e,t=0,r=0,i=0,o=0){super(t,r,i,o),this.id=e}static clone(e){return new nn(e.id,e.x,e.y,e.width,e.height)}}let sn=0,an=0,ln=0,dn=0;const cn=(e,t,r)=>{(0,K.useEffect)((()=>{if(e)return t.on("closeStory",i),()=>{t.off("closeStory",i)}}),[e]);const i=i=>{if(!e)return;const o=e.slides.find((e=>Number(e.dataset.id)===i));if(!o||((e,t)=>{const i=new en(t.offsetLeft,t.offsetTop,t.clientWidth,t.clientHeight),{x:o,y:n}=e.getCurrentPosition(),s=r.current.getBoundingClientRect(),a=new en(s.x+o,s.y+n,s.width,s.height);return i.overlaps(a)})(e,o))return;const n="horizontal"===t.options.direction?o.offsetLeft:o.offsetTop;e.scrollTo(n)}},un=(0,K.forwardRef)((({viewModel:e,feedCoverageAnalytics:t},r)=>{const o=(0,K.useRef)(null),{sliderRef:n,slider:s,isScrolling:a}=Qo(e);((e,t,r)=>{(0,K.useEffect)((()=>{if(!t)return;t.addListener("scrollstart",n),t.addListener("scrollend",s);const e=jo()(i,600,{leading:!1});return window.addEventListener("scroll",e),window.addEventListener("resize",e),()=>{null==t||t.removeListener("scrollstart",n),null==t||t.removeListener("scrollend",s),window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}}),[t]),(0,K.useEffect)((()=>{i()}),[r.options.direction,r.options.card.aspectRatio,r.options.card.height,r.session]);const i=()=>{if(!t)return;const r=t.elementRef.getBoundingClientRect(),{x:i,y:n}=t.getCurrentPosition();o(r),e.calculate({minOffsetLeft:i,maxOffsetLeft:i,minOffsetTop:n,maxOffsetTop:n})};(0,K.useEffect)((()=>{const t=t=>e.markStoryAsFullVisible(t);return r.on("openStory",t),()=>{r.off("openStory",t)}}),[r]);const o=e=>{const{left:t,top:r,width:i,height:o}=e,n=new en(t,r,i,o);a(n),d(n)},n=({x:e,y:t})=>{sn=e,ln=t,an=0,dn=0},s=({x:t,y:r})=>{sn=Math.min(t,sn),an=Math.max(t,an),ln=Math.min(r,ln),dn=Math.max(r,dn),e.calculate({minOffsetLeft:sn,maxOffsetLeft:an,minOffsetTop:ln,maxOffsetTop:dn})},a=t=>{const r=new en(0,0,window.parent.innerWidth,window.parent.innerHeight),i=l(r,t);c(i,t),e.setViewport(i)},l=(e,t)=>{let r=new en;return t.overlaps(e)?(r=t.getIntersection(e),r):r},d=r=>{if(!t)return;const i=t.slides,o=[];i.forEach(((e,t)=>{const n=Number(e.dataset.id),s=new nn(n,e.offsetLeft,e.offsetTop,e.clientWidth,e.clientHeight);o.push(s),s.x+=r.x,s.y+=r.y,p(s,t,i.length-1)})),e.setStoryRects(o)},c=(e,t)=>{if(t.width<768)return;const r=u();e.x+=r.left,e.y+=r.top,e.height-=r.top+r.bottom,e.width-=r.left+r.right},u=()=>{const e=r.options.sidePadding,t={left:e,right:e,top:r.options.topPadding,bottom:r.options.bottomPadding};return"vertical"===r.options.direction&&(t.left=0,t.right=0),t},p=(e,t,r)=>{const i=u();e.x+=i.left,0===t&&(e.x+=i.left,e.width-=i.left),t===r&&(e.width-=i.right)}})(t,s,e),((e,t,r)=>{(0,K.useEffect)((()=>{e&&t.modeDesktop&&o(e,r.current)}),[e,t.modeDesktop]);const o=(e,r)=>{if(t.options.layout.sliderAlign!==i.CENTER)return;let o=e.scrollWidth;if(o>0&&o<r.clientWidth){let t=r.clientWidth-o/2;e.scrollTo(t)}}})(s,e,o),cn(s,e,o);const{getRootStyle:l,getStoryWrapperStyle:d,viewportInnerClassList:c,viewportInnerStyle:u}=(e=>({getRootStyle:()=>({"--background-color":e.options.layout.backgroundColor,paddingLeft:e.options.sidePadding+"px",paddingRight:e.options.sidePadding+"px","--storiesListTopPadding":e.options.topPadding+"px","--storiesListBottomPadding":e.options.bottomPadding+"px","--storiesListSidePadding":e.options.sidePadding+"px",backgroundColor:e.options.layout.backgroundColor}),getStoryWrapperStyle:t=>{let r={marginRight:"0",paddingLeft:"0",paddingRight:"0"};return"vertical"===e.options.direction||(t!==e.stories.length-1?r.marginRight=e.options.card.gap+"px":r.paddingRight=e.options.sidePadding+"px",0===t&&(r.paddingLeft=e.options.sidePadding+"px")),r},viewportInnerClassList:e.modeDesktop?ko()(Zo["stories-list__viewport-inner"],Zo["mode-desktop"],{[Zo["with-list-controls"]]:e.options.navigation.showControls,[Zo.isTitleCardOutsideTop]:e.isTitleCardOutsideTop,[Zo.isTitleCardOutsideBottom]:e.isTitleCardOutsideBottom,[Zo.isVerticalDirection]:"vertical"===e.options.direction}):ko()(Zo["stories-list__viewport-inner"],Object.assign(Object.assign({},{[Zo["align-left"]]:e.options.layout.sliderAlign===i.LEFT,[Zo["align-center"]]:e.options.layout.sliderAlign===i.CENTER,[Zo["align-right"]]:e.options.layout.sliderAlign===i.RIGHT}),{[Zo.isTitleCardOutsideTop]:e.isTitleCardOutsideTop,[Zo.isTitleCardOutsideBottom]:e.isTitleCardOutsideBottom})),viewportInnerStyle:e.modeDesktop?{height:`${e.options.layout.storiesListInnerHeight}px`,gap:"vertical"===e.options.direction?`${e.options.card.gap}px`:0}:{height:`${e.options.layout.storiesListInnerHeight}px`}}))(e);return Lt(vo,{className:ko()(Zo["stories-list-wrapper"],{[Zo["mode-desktop"]]:e.modeDesktop,[Zo["with-list-controls"]]:e.options.navigation.showControls}),ref:r,style:l(),sliderOptions:e.options,children:[Ot("div",{className:Zo["stories-list"],children:Ot("div",{ref:o,className:ko()(Zo["stories-list__viewport"],{[Zo["mode-desktop"]]:e.modeDesktop}),style:"horizontal"===e.options.direction?{marginLeft:-e.options.sidePadding+"px",marginRight:-e.options.sidePadding+"px"}:{},children:Ot("div",{ref:n,className:c,style:u,children:e.stories.map(((t,r)=>Ot(Fo,{story:t,index:r,storyListViewModel:e,wrapperStyle:d(r),isScrolling:a},r)))})})}),s&&e.options.navigation.showControls&&Ot(Ko,{sliderDirection:e.options.direction,slider:s})]})}));class pn{constructor(e,t){this.storyManager=e,this.params=t,this.handleFlushThumbViews=this.handleFlushThumbViews.bind(this),this.handleVisibleAreaUpdated=this.handleVisibleAreaUpdated.bind(this)}create(){const e=new on;return e.on("flushThumbViews",this.handleFlushThumbViews),e.on("visibleAreaUpdated",this.handleVisibleAreaUpdated),e}handleFlushThumbViews(e){const t=x.Tl.getState();this.params.listType!==Kr.DEFAULT||t.disableStatistic||Br(e);const r=this.params.identityFields.feedSlug,i=this.params.identityFields.filter,o=ts(r),n={stories:e.map((e=>{const t={title:null,tags:[],slidesCount:null},r=Jr.getState().find((t=>t.id===e));return r&&(t.title=r.stat_title,t.tags=r.tags,t.slidesCount=r.slides_count,r.type===Kr.UGC&&(t.ugcPayload=R()(r.payload)?r.payload:{})),Object.assign({id:e},t)})),feed:null,filter:null};o===Kr.DEFAULT?n.feed=r:o===Kr.UGC&&(n.filter=i),this.storyManager.emit("feedImpression",n)}handleVisibleAreaUpdated(e){const t=this.params.identityFields.feedSlug,r=this.params.identityFields.filter,i=ts(t),o={stories:e.map((({storyId:e,visibleArea:t})=>{const r={title:null,tags:[],slidesCount:null,visibleArea:t},i=Jr.getState().find((t=>t.id===e));return i&&(r.title=i.stat_title,r.tags=i.tags,r.slidesCount=i.slides_count,i.type===Kr.UGC&&(r.ugcPayload=R()(i.payload)?i.payload:{})),Object.assign({id:e},r)})),feed:null,filter:null};i===Kr.DEFAULT?o.feed=t:i===Kr.UGC&&(o.filter=r),this.storyManager.emit("visibleAreaUpdated",o)}}var fn=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};const hn=e=>{var{viewModelExporter:t,onLoadStart:r,onLoadEnd:i}=e,o=fn(e,["viewModelExporter","onLoadStart","onLoadEnd"]);const n=(0,K.useRef)(null),s=(()=>{const[e,t]=(0,K.useState)(!1);(0,K.useEffect)((()=>(r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)})),[]);const r=()=>{"mobile"===io.parsedResult.platform.type||"tablet"===io.parsedResult.platform.type?t(!1):t(!0)};return e})(),a=(({listType:e,feedSlug:t,testKey:r,storyManager:i,appearanceManager:o,filter:n,useUgcCard:s,ugcCardClickHandler:a})=>{const[,l]=(0,K.useState)(0),[d,c]=(0,K.useState)(null),u=()=>{requestAnimationFrame((()=>l((e=>++e))))};return(0,K.useEffect)((()=>{const l=i.createStoryListViewModel({listType:e,testKey:r,identityFields:{feedSlug:t,filter:n},appearanceManager:o,useUgcCard:s,ugcCardClickHandler:a});return c(l),()=>{l.destroy()}}),[i,r,t,n,o]),(0,K.useEffect)((()=>{if(d)return d.on("update",u),()=>{d.off("update",u)}}),[d]),d})(o),l=(({storyManager:e,listType:t,identityFields:r})=>{const[i,o]=(0,K.useState)(null);return(0,K.useEffect)((()=>{const i=new pn(e,{listType:t,identityFields:r}).create();return o(i),()=>{i.destroy()}}),[r.feedSlug,r.filter]),i})({listType:o.listType,identityFields:{feedSlug:o.feedSlug,filter:o.filter},storyManager:o.storyManager}),{updateStoryListOptions:d}={updateStoryListOptions:(e,t)=>{const r=new uo(e,t.card.title),i=new po(t),{storiesListHeight:o,storiesListInnerHeight:n}=i.getStoriesListStyleOptions(r.getStoryTitleBlockHeight()),s=r.getCardTitleFont();s.fontSize=r.getScaledFontSizeInWebView(),t.card.title.font=s.toString(),t.layout.storiesListInnerHeight=o}},c=()=>{null==r||r()},u=e=>{null==i||i(e)};(0,K.useEffect)((()=>{a&&(a.modeDesktop=s)}),[s,a]),(0,K.useEffect)((()=>{if(a)return null==t||t(a),a.on("startLoading",c),a.on("endLoading",u),()=>{a.off("startLoading",c),a.off("endLoading",u)}}),[a]);const p=e=>{const t=n.current;d(t,e),null==a||a.setOptions(e)};return(0,K.useEffect)((()=>{if(a&&l)return p(o.appearanceManager.storiesListOptions),o.appearanceManager.on(_.EVENT_UPDATED_STORIES_LIST_OPTIONS,p),()=>{o.appearanceManager.off(_.EVENT_UPDATED_STORIES_LIST_OPTIONS,p)}}),[o.appearanceManager,a,l]),l&&a?Ot(un,{ref:n,viewModel:a,feedCoverageAnalytics:l}):null},gn=e=>Ot(hn,{listType:Kr.DEFAULT,testKey:e.testKey,storyManager:e.storyManager,appearanceManager:e.appearanceManager,feedSlug:e.feedSlug,useUgcCard:Boolean(e.useUgcCard),ugcCardClickHandler:e.ugcCardClickHandler,viewModelExporter:e.viewModelExporter,onLoadStart:e.onLoadStart,onLoadEnd:e.onLoadEnd}),vn=e=>{const t=es;return Ot(hn,{listType:Kr.DEFAULT,testKey:e.testKey,storyManager:e.storyManager,appearanceManager:e.appearanceManager,feedSlug:t,filter:e.filter,useUgcCard:Boolean(e.useUgcCard),ugcCardClickHandler:e.ugcCardClickHandler,viewModelExporter:e.viewModelExporter,onLoadStart:e.onLoadStart,onLoadEnd:e.onLoadEnd})};class mn extends t.EventEmitter{destroy(){}}let yn;yn=function(){};class _n{constructor(){this.__lastUpdated=null,this._receiveTime=0,this._serverTimestamp=0,this.rawData={},this.myDictionary={}}get receiveTime(){return this._receiveTime}singleModelWrapper(){return""}attributes(){return["__lastUpdated"]}static prepareFromResponse(){}setAttributes(e){const t=this.attributes();let r=this;for(let i in e){let o=e[i];-1!==t.indexOf(i)&&(r[i]=o)}}static createInstance(e,t){const r=new e;let i=t;return""!==r.singleModelWrapper()&&void 0!==t[r.singleModelWrapper()]&&(i=t[r.singleModelWrapper()]),r.rawData=t,r.setAttributes(i),r._receiveTime=(new Date).getTime(),void 0!==t.server_timestamp&&(r._serverTimestamp=t.server_timestamp),r}static _fetch(e,t,r,i="get"){return new Promise(((e,t)=>{e({})}))}static _fetchList(e,t,r){return Promise.resolve({})}static emitEvent({type:e,event:t,eventData:r}){return Promise.resolve()}static update(e,t,r="post"){return Promise.resolve()}}class bn extends _n{attributes(){return["width","height","type","url"]}constructor(){super(),this._url=""}set url(e){this._url=e}get url(){let e=window.isSecureContext;return void 0===e&&"https:"===window.location.protocol&&(e=!0),e?this._url:this._url.replace(/^https:\/\//,"http://")}}const wn=__webpack_require__(3981);class Sn{constructor(){this.images=[],this.color="",this.gradient=!1}static createFromArray(e){const t=new Sn;for(let r in e)e.hasOwnProperty(r)&&t.images.push(bn.createInstance(bn,e[r]));return t}findOneByType(e){var t;return null!==(t=this.images.find((t=>t.type===e)))&&void 0!==t?t:null}findOneByCoverQuality(e){return this.findOneByType(this.mapCoverQualityToImageType(e))}findOneByWidth(e,t=!1){let r=null;return this.images.forEach((t=>{t.width===e&&(r=t)})),null!==r||t&&void 0!==(r=wn(this.images))?r:null}mapCoverQualityToImageType(e){switch(e){case a.Medium:return"m";case a.High:return"h"}}}var Cn=__webpack_require__(4871),kn=__webpack_require__.n(Cn);class On extends _n{constructor(){super(...arguments),this._title="",this.title_color="",this.magazine_name="",this.is_opened=!1,this._slides_html=[],this.slides_duration=[],this.slides_screenshot_share=[],this.source="",this.favorite=!1,this.like=0,this.slides_count=null,this.deeplink=null,this.hide_in_reader=null,this.blank=!1,this.disable_close=!1,this.need_placeholders=null,this._placeholders={},this.favorite_cell=!1,this.ugc_card_cell=!1,this.slidesLoaded=!1,this._imageSrc=null,this._parsedIssueArticleIds=null,this._parsedArticleIds=null,this._parsedSlideImage=null,this._video_cover=null,this._videoCoverSrc=null}static fetch(e,t){return this.placeholders=t,this._fetch(On,`story/${e}`,{expand:"slides_html,slides_duration"})}static fetchList(e,t,r){this.placeholders=e;const i={tags:t};return void 0!==r&&(i.favorite=Number(r)),this._fetchList(On,"story",i)}static fetchWithSlides(e,t){return this.placeholders=t,Promise.all(e.map((e=>this.fetch(e,t))))}static fetchOnboardingList(e,t){return this.placeholders=e,this._fetchList(On,"story-onboarding",{tags:t})}static fetchOnboardingListWithSlides(e,t){return this.placeholders=t,Promise.all(e.map((e=>this.fetch(e,t))))}attributes(){return kn()(super.attributes(),["title","title_color","source","magazine_name","background","background_color","id","image","display_to","display_from","slides_html","slides_duration","slides_screenshot_share","favorite","like","slides_count","deeplink","hide_in_reader","disable_close","like_functional","favorite_functional","share_functional","is_opened","tags","has_audio","has_placeholder","video_cover","need_placeholders","has_swipe_up","share_url","game_instance","slidesLoaded"])}set image(e){this._image=Sn.createFromArray(e)}get image(){return this._image}get issueArticleIds(){return this.parseHtmlSlidesForLinks(),null!==this._parsedIssueArticleIds?this._parsedIssueArticleIds:[]}get articleIds(){return this.parseHtmlSlidesForLinks(),null!==this._parsedArticleIds?this._parsedArticleIds:[]}imagePerSlide(e){return this.parseHtmlSlidesForMainImage(),null!==this._parsedSlideImage&&void 0!==this._parsedSlideImage[e]?this._parsedSlideImage[e]:null}parseHtmlSlidesForLinks(){null===this._parsedArticleIds&&null===this._parsedIssueArticleIds&&this.slides_html.forEach((e=>{const t=e.match(/<[^<]*narrative-element-link.*data-link-type="([a-z-]*)".*data-link-target="(\d+)"[^<]*>/i);if(null!==t){const e=t[1],r=parseInt(t[2]);"article"===e?(null===this._parsedArticleIds&&(this._parsedArticleIds=[]),-1===this._parsedArticleIds.indexOf(r)&&this._parsedArticleIds.push(r)):"issue-article"===e&&(null===this._parsedIssueArticleIds&&(this._parsedIssueArticleIds=[]),-1===this._parsedIssueArticleIds.indexOf(r)&&this._parsedIssueArticleIds.push(r))}}))}parseHtmlSlidesForMainImage(){null===this._parsedSlideImage&&this.slides_html.forEach(((e,t)=>{const r=e.match(/<[^<]*narrative-element-image.*<img[^<]*src="([^"]*)"[^<]*>/i);null!==r&&(null===this._parsedSlideImage&&(this._parsedSlideImage=[]),this._parsedSlideImage[t]=r[1])}))}set video_cover(e){null!==e&&(this._video_cover=Sn.createFromArray(e))}get video_cover(){return this._video_cover}get videoCoverSrc(){if(!1===this._videoCoverSrc)return null;if(null===this._videoCoverSrc){const e=this.video_cover;if(null===e)return this._videoCoverSrc=!1,null;const t=e.findOneByType("h");if(null!==t)return t.url}return"string"==typeof this._videoCoverSrc?this._videoCoverSrc:null}get title(){return this._title}set title(e){if(!0===this.need_placeholders||!0===this.rawData.need_placeholders)for(let t in On.placeholders)On.placeholders.hasOwnProperty(t)&&(e=ki(e,`%${t}%`,On.placeholders[t]));this.rawData.title=e,this._title=e}get slides_html(){return this._slides_html}set slides_html(e){if(!0===this.need_placeholders||!0===this.rawData.need_placeholders)for(let t in On.placeholders)if(On.placeholders.hasOwnProperty(t))for(let r=0;r<e.length;r++)e[r]=ki(e[r],`%${t}%`,On.placeholders[t]);const t=null!==__webpack_require__.nc&&void 0!==__webpack_require__.nc?__webpack_require__.nc:"";for(let r=0;r<e.length;r++)e[r]=ki(e[r],"{{nonce}}",null!=t?t:"");this._slides_html=e}get isOpened(){return this.is_opened}set isOpened(e){this.is_opened=e,this.rawData.is_opened=e}}On.placeholders={};const Ln=On;class xn{static create(e){const t=_n.createInstance(Ln,{id:0,title:e.favoriteCard.title.content,title_color:e.favoriteCard.title.color,is_opened:!0,background_color:"white"});return t.favorite_cell=!0,t}}class An{static create(e){let t=[];e.ugcCard.image&&e.ugcCard.image.svgSrc&&e.ugcCard.image.svgSrc.baseState&&t.push({width:100,height:100,type:"h",url:`data:image/svg+xml,${ho(e.ugcCard.image.svgSrc.baseState)}`});const r=_n.createInstance(Ln,{id:-100,title:e.ugcCard.title.content,title_color:e.ugcCard.title.color,is_opened:!1,background_color:e.ugcCard.backgroundColor,image:t});return r.ugc_card_cell=!0,r}}const En=(e,t)=>{let r=[];switch(e){case S.default:r=t?ri.getState()[t]:[];break;case S.favorite:r=oi.getState();break;case S.onboarding:r=t?ii.getState()[t]:[]}return null!=r?r:[]},Mn=__webpack_require__(4871);var Tn;!function(e){e.FONT="font-face"}(Tn||(Tn={}));class Rn extends _n{attributes(){return Mn(super.attributes(),["weight","style","type","url","title","family","format"])}constructor(){super(),this._url=""}set url(e){this._url=e}get url(){let e=window.isSecureContext;return void 0===e&&"https:"===window.location.protocol&&(e=!0),e?this._url:this._url.replace(/^https:\/\//,"http://")}get isFont(){return this.type===Tn.FONT}get fontFaceAsCss(){var e,t,r;if(!this.isFont)return null;let i={"font-family":null!==(e=this.family)&&void 0!==e?e:"normal",src:`url('${this.url}')`,"font-style":null!==(t=this.style)&&void 0!==t?t:"normal","font-weight":null!==(r=this.weight)&&void 0!==r?r:"normal"};return this.title&&(i.src+=`, local('${this.title}')`),`@font-face {${(0,Et.ky)(i)}}\n`}}__webpack_require__(3981);class In{constructor(){this.resources=[]}static createFromArray(e){const t=new In;for(let r in e)e.hasOwnProperty(r)&&t.resources.push(Rn.createInstance(Rn,e[r]));return t}get fontsCss(){let e="";return this.resources.forEach((t=>{if(t.isFont){let r=t.fontFaceAsCss;null!==r&&(e+=r)}})),e||null}}class Pn extends _n{constructor(){super(),this.id=null,this.expire_in=null,this.closed=!1,this.is_allow_profiling=!1,this.preview_aspect_ratio=1,this._placeholders={}}singleModelWrapper(){return""}attributes(){return kn()(super.attributes(),["server_timestamp","session","cache","share","user_key","placeholders","is_allow_profiling","preview_aspect_ratio"])}static fetch(e){return this._fetch(Pn,"session/open?expand=cache",e,"post")}static updateSession(e){return this.update("session/update",e)}set session(e){this.id=e.id,this.expire_in=e.expire_in,void 0!==e.closed&&(this.closed=e.closed)}set cache(e){this._projectResourceCache=In.createFromArray(e)}get cache(){return this._projectResourceCache}set placeholders(e){M()(e)&&e.forEach((e=>{R()(e)&&void 0!==e.name&&void 0!==e.default_value&&(this._placeholders[e.name]=e.default_value)}))}get placeholders(){return this._placeholders}}var Fn=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class Dn{constructor(e){this.storyManager=e}loadStories({listType:e,identityFields:t,testKey:r,needFavorite:i=!0}){return Fn(this,void 0,void 0,(function*(){const o=e===Kr.DEFAULT&&i;yield Ti({defaultList:t,onboardingList:!1,favoriteList:o,testKey:r});const n=En(S.default,t.feedSlug),s=t.feedSlug===es?Kr.UGC:Kr.DEFAULT;const a={stories:n.map((e=>{const t={title:null,tags:[],slidesCount:null};return e&&(t.title=e.stat_title,t.tags=e.tags,t.slidesCount=e.slides_count,e.type===Kr.UGC&&(t.ugcPayload=R()(e.payload)?e.payload:{})),Object.assign({id:e.id},t)})),feed:null,filter:null};s===Kr.DEFAULT?a.feed=t.feedSlug:s===Kr.UGC&&(a.filter=t.filter),this.storyManager.emit("feedLoad",a);return{defaultStories:En(S.default,t.feedSlug),favoriteStories:En(S.favorite,t.feedSlug)}}))}observeDefaultStories(e){return ri.map((t=>{var r;return(null!==(r=t[e])&&void 0!==r?r:[]).map((e=>this.createStoryByData(Object.assign(Object.assign({},e),{slides_html:[]}))))}))}observeFavoriteStories(){return oi.map((e=>e.map((e=>this.createStoryByData(Object.assign(Object.assign({},e),{slides_html:[]}))))))}observeSession(){return Pr.map((e=>_n.createInstance(Pn,e)))}createStoryByData(e){return e instanceof Ln?e:_n.createInstance(Ln,e)}}var jn,Bn,Nn,Un;!function(e){e.LEFT="left",e.RIGHT="right"}(jn||(jn={})),function(e){e.FLAT="flat",e.COVER="cover",e.CUBE="cube"}(Bn||(Bn={})),function(e){e.CIRCLE="circle",e.QUAD="quad",e.RECTANGLE="rectangle"}(Nn||(Nn={})),function(e){e.STYLE_CIRCLE="circle",e.STYLE_QUAD="quad",e.STYLE_RECTANGLE="rectangle",e.SWIPE_CUBE="cube",e.SWIPE_FLAT="flat",e.SWIPE_COVER="cover",e.CLOSE_BUTTON_LEFT="left",e.CLOSE_BUTTON_RIGHT="right"}(Un||(Un={}));class Wn{constructor(e){this.nextHandler=e}handleStoryClick(e,t){this.nextHandler&&this.nextHandler.handleStoryClick(e,t)}}class $n extends Wn{constructor(e){super(e)}handleStoryClick(e,t){var r;if(e.hide_in_reader)return void console.error("Cannot open hidden story id"+e.id);const i={id:e.id,index:t.index,isDeeplink:!1,url:null!==(r=e.deeplink)&&void 0!==r?r:void 0};t.eventPublisher.emit("clickOnStory",i),super.handleStoryClick(e,t)}}class Gn extends Wn{constructor(e){super(e)}handleStoryClick(e,t){var r;if(!e.deeplink||!this.isValidDeeplink(e.deeplink))return void super.handleStoryClick(e,t);const i={id:e.id,index:t.index,isDeeplink:(!1,!0),url:null!==(r=e.deeplink)&&void 0!==r?r:void 0};i.url=e.deeplink,t.eventPublisher.emit("clickOnStoryDeepLink",i)}isValidDeeplink(e){return N()(e)&&e.trim().length>0}}class qn extends Wn{constructor(e){super(e)}handleStoryClick(e,t){var r;const i=null===(r=e.game_instance)||void 0===r?void 0:r.id;i?t.eventPublisher.emit("clickOnStoryGame",{id:e.id,gameInstanceId:i}):super.handleStoryClick(e,t)}}class zn extends Wn{constructor(){super()}handleStoryClick(e,t){const r={index:t.index,isDeeplink:!1,id:e.id,listType:S.default,windowReferer:w.default};e.favorite_cell?t.eventPublisher.emit("clickOnFavoriteCellInternal",r):e.ugc_card_cell?t.eventPublisher.emit("clickOnUgcCardCellInternal",r):t.eventPublisher.emit("clickOnStoryInternal",r),super.handleStoryClick(e,t)}}var Hn=__webpack_require__(2451),Vn=__webpack_require__.n(Hn),Yn=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class Kn extends mn{set modeDesktop(e){this._modeDesktop=e,this.emit("update")}get modeDesktop(){return this._modeDesktop}get session(){return this._session}constructor(e,t,r){super(),this.appearanceManager=e,this.storiesService=t,this.params=r,this.stories=[],this._session=null,this._options=d,this._modeDesktop=!0,this.defaultStories=[],this.favoriteStories=[],this.storyReader=null,this.subscriptions=[],this.favoriteStoryImages=[],this.setDefaultStories=this.setDefaultStories.bind(this),this.setFavoriteStories=this.setFavoriteStories.bind(this),this.setSession=this.setSession.bind(this),this.hanldeShowStory=this.hanldeShowStory.bind(this),this.handleCloseStory=this.handleCloseStory.bind(this),this.subscribeToStoriesService(),this.loadStories({needFavorite:!0}),this.emit("create")}get cardOptions(){return this._options.card}get options(){return this._options}get isTitleCardInner(){return this._options.card.title.position===s.CARD_INSIDE_BOTTOM}get isTitleCardOutsideTop(){return this._options.card.title.position===s.CARD_OUTSIDE_TOP}get isTitleCardOutsideBottom(){return this._options.card.title.position===s.CARD_OUTSIDE_BOTTOM}get cardAspectRatio(){return this.options.card.aspectRatio?this.options.card.aspectRatio:this.options.card.variant===Un.STYLE_CIRCLE||this.options.card.variant===Un.STYLE_QUAD?1:this.options.card.variant===Un.STYLE_RECTANGLE?this.session&&this.session.preview_aspect_ratio?this.session.preview_aspect_ratio:.8:1}onStoryClick(e,t){const r=new zn,i=new $n(r),o=new qn(i);new Gn(o).handleStoryClick(e,{eventPublisher:this,index:t})}destroy(){var e,t;this.emit("destroy"),this.subscriptions.forEach((e=>e.unsubscribe())),this.removeAllListeners(),null===(e=this.storyReader)||void 0===e||e.off("showStory",this.hanldeShowStory),null===(t=this.storyReader)||void 0===t||t.off("closeStoryReader",this.handleCloseStory)}getImageSrcByStory(e){var t;const r=null===(t=e.image)||void 0===t?void 0:t.findOneByCoverQuality(this.cardOptions.coverQuality);return null==r?void 0:r.url}setOptions(e){this._options=Vn()(this._options,e),this.emit("update")}reload(){return Yn(this,void 0,void 0,(function*(){return this.loadStories({needFavorite:!1})}))}setFavoriteStoryImages(){this.favoriteStoryImages=this.favoriteStories.map((e=>{var t;const r=null===(t=e.image)||void 0===t?void 0:t.findOneByCoverQuality(this.options.favoriteCard.coverQuality);return{src:null==r?void 0:r.url,color:e.background_color}})).slice(0,4)}setStories(){this.stories=this.defaultStories.slice(),this.params.useUgcCard&&this.stories.unshift(An.create(this.options)),this.appearanceManager.commonOptions.hasFavorite&&this.favoriteStories.length>0&&this.stories.push(xn.create(this.options))}setDefaultStories(e){this.defaultStories=e,this.setStories(),this.emit("update")}setFavoriteStories(e){this.favoriteStories=e,this.setStories(),this.setFavoriteStoryImages(),this.emit("update")}setSession(e){this._session=e,this.emit("update")}setStoryReader(e){this.storyReader=e,this.storyReader.on("showStory",this.hanldeShowStory),this.storyReader.on("closeStoryReader",this.handleCloseStory)}hanldeShowStory(e){this.emit("openStory",e.id)}handleCloseStory(e){this.emit("closeStory",e.id)}subscribeToStoriesService(){const e=this.storiesService.observeDefaultStories(this.params.identityFields.feedSlug).watch(this.setDefaultStories);if(this.hasFavoriteStories()){const e=this.storiesService.observeFavoriteStories().watch(this.setFavoriteStories);this.subscriptions.push(e)}const t=this.storiesService.observeSession().watch(this.setSession);this.subscriptions.push(e,t)}hasFavoriteStories(){return this.appearanceManager.commonOptions.hasFavorite&&this.params.listType===Kr.DEFAULT}loadStories(e){var t;return Yn(this,void 0,void 0,(function*(){const r=Boolean(this.appearanceManager.commonOptions.hasFavorite)&&e.needFavorite,i={feed:this.params.identityFields.feedSlug,filter:{},defaultListLength:0,favoriteListLength:0,success:!0,error:{name:"",networkStatus:200,networkMessage:""}};try{this.emit("startLoading");const{defaultStories:e,favoriteStories:t}=yield this.storiesService.loadStories(Object.assign(Object.assign({},this.params),{needFavorite:r}));i.success=!0,i.error=null,i.defaultListLength=e.length,this.appearanceManager.commonOptions.hasFavorite&&this.params.listType===Kr.DEFAULT&&(i.favoriteListLength=t.length)}catch(e){console.error(e),i.success=!1,i.error={name:e.name,networkMessage:e.networkMessage,networkStatus:e.networkStatus}}finally{i.filter=null!==(t=this.params.identityFields.filter)&&void 0!==t?t:{},this.emit("endLoading",i)}}))}}class Qn{constructor(e,t,r){this.appearanceManager=e,this.storiesService=t,this.params=r}create(){const e=new Kn(this.appearanceManager,this.storiesService,this.params);return e.setOptions(this.appearanceManager.storiesListOptions),e}}var Xn=__webpack_require__(6292),Jn=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Zn=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};const es="{{__ugc__}}",ts=e=>e===es?Kr.UGC:Kr.DEFAULT;(0,A.XM)({source:Pr,clock:Pr,filter:e=>{var t;return Boolean(null===(t=null==e?void 0:e.session)||void 0===t?void 0:t.id)},target:(0,A.EH)((e=>{const t=e.cache.filter((e=>"font-face"===e.type));(0,Xn.eJ)(t)}))});class rs extends Error{constructor(e){super(`Appearance Manager must be an object, but passed ${e.toUpperCase()}. Please check your code.`)}}const is=e=>{if(null==e||"object"!=typeof e)throw new rs(null==e?"null":typeof e)};t.EventEmitter;const os=Object.prototype.hasOwnProperty,ns=(e,t)=>{let r=[];switch(e){case S.default:r=t?ri.getState()[t]:[];break;case S.favorite:r=oi.getState();break;case S.onboarding:r=t?ii.getState()[t]:[]}return null!=r?r:[]},ss=()=>Pr.getState().cache.filter((e=>"font-face"===e.type)),as=()=>{const e=I.getState(),t=xi.getState(),r=[],i={};for(let t in e.default)os.call(e.default,t)&&(i[t]={type:O.TEXT,name:t,value:e.default[t]});for(let t in e.user)os.call(e.user,t)&&(i[t]={type:O.TEXT,name:t,value:e.user[t]});for(let e in i)os.call(i,e)&&r.push(i[e]);const o={};for(let e in t.default)os.call(t.default,e)&&(o[e]={type:O.IMAGE,name:e,value:t.default[e]});for(let e in t.user)os.call(t.user,e)&&(o[e]={type:O.IMAGE,name:e,value:t.user[e]});for(let e in o)os.call(o,e)&&r.push(o[e]);return r},ls=(e,t,r)=>Jn(void 0,void 0,void 0,(function*(){var i,o,n,s;const a=yield Wi({id:e,feedSlug:"",fetchShareUrl:r}),l=(new Date).getTime(),d=null===(o=null===(i=a.find((e=>"story"===e.ref)))||void 0===i?void 0:i.body)||void 0===o?void 0:o.id,c=Jr.getState().find((e=>e.id===d))||Qr(d);c.slidesLoaded=!1;const u={windowReferer:w.default,listType:S.default,id:d,storyContext:_i.getState(),storyList:[c],hasShare:Pr.getState().share,placeholders:as()};t.closeReader(),t.openReader(u,{listType:S.direct,feed:null});N()(e)&&M()(a)&&(e=null===(s=null===(n=a.find((e=>"story"===e.ref)))||void 0===n?void 0:n.body)||void 0===s?void 0:s.id,yield bi({ids:[e],feedSlug:""}));const p=Jr.getState().find((t=>t.id===e));if(void 0!==p){t.setFonts(ss());const e=()=>{p.slidesLoaded=!0,t.setStoriesAndContext({listType:S.direct,storyList:[p],storyContext:yi(ts(""),_i.getState())})},r=Math.max(0,300-((new Date).getTime()-l));return r?setTimeout(e,r):e(),!0}return t.closeReader(),!1}));class ds extends t.EventEmitter{constructor(e,r){if(super(),this._callbacks={},this.clickOnButtonAction=({src:e,payload:t})=>{if(j()(this._callbacks.storyLinkClickHandler)||this.listenerCount(k.CLICK_ON_STORY)>0){const r={src:e,srcRef:"default",data:t};try{j()(this._callbacks.storyLinkClickHandler)&&this._callbacks.storyLinkClickHandler(r),this.emit(k.CLICK_ON_STORY,r)}catch(e){console.error(e)}}else window.open(t.url,"_self")},this._storyReaderInstance=null,this.storyReaderInstancePromise=null,this._goodsWidgetInstance=null,this._storyFavoriteReaderInstance=null,this.storyFavoriteReaderInstancePromise=null,this.SharePage=class extends t.EventEmitter{constructor(e,t,r,i="default"){return super(),this.options={},is(t),r&&(this.options=r),ds.instance._showSharePage(e,t,this.options,this).then((({storyReaderInstance:e,appearanceManager:t,result:r})=>{this.storyReaderWidget=e,this.appearanceManager=t})),this}closeStoryReader(){return Jn(this,void 0,void 0,(function*(){this.storyReaderWidget&&(ds.instance.closeGoodsWidget(),this.storyReaderWidget.closeReader())}))}},this._showSharePage=(e,t,r,i)=>Jn(this,void 0,void 0,(function*(){setTimeout((()=>{i.emit(Gi.START_LOADING),j()(r.handleStartLoad)&&r.handleStartLoad()})),this.storyReaderInstancePromise=this.initStoryReader(t,ss(),{closeOnLastSlideByTimer:!1,recycleStoriesList:!1,_disableSession:this._config.disableStatistic});const o=this._config.disableStatistic,n=yield this.getStoryReaderInstance();let s=!1;try{n.on("closeStoryReader",(e=>{if(j()(r.handleStoryReaderClose)||i.listenerCount(Gi.CLOSE_STORY_READER)>0)try{j()(r.handleStoryReaderClose)&&r.handleStoryReaderClose(),i.emit(Gi.CLOSE_STORY_READER)}catch(e){console.error(e)}else{const e=window.location!=window.parent.location?window.parent.location:window.location;window.open(`${e.protocol}//${e.host}`,"_parent")}})),s=yield ls(e,n,o)}catch(e){}return i.emit(Gi.END_LOADING,{result:s}),j()(r.handleStopLoad)&&r.handleStopLoad(s),{storyReaderInstance:n,appearanceManager:t,result:s}})),this.onBeforeStoryReaderOpen=null,this.onBeforeFavoriteReaderOpen=null,this.onStoryReaderClosed=null,this.onFavoriteReaderClosed=null,ds.instance)console.warn("StoryManager singleton is created multiple times\nuse IAS.StoryManager.getInstance() instead");else{if(!e.nonce){const t=document.querySelector("[nonce]");null!=t&&(e.nonce=t.nonce||t.getAttribute("nonce"))}(0,q.F)(e.apiKey),Ar.getInstance().checkUserIdLength(e.userId),Ar.getInstance().checkTagsLength(e.tags),(0,x.JG)(e),e.placeholders&&P(e.placeholders),e.imagePlaceholders&&Ai(e.imagePlaceholders),r&&R()(r)&&(this._callbacks=r),jr(),ds.instance=this}return e.disableStatistic="com.inappstory.webpreview"===e.appPackageId,this._config=e,ds.instance}destroy(){null!=ds.instance&&(ds.instance=null)}set storyLinkClickHandler(e){j()(e)&&(this._callbacks.storyLinkClickHandler=e)}set openGoodsWidgetHandler(e){j()(e)&&(this._callbacks.openGoodsWidgetHandler=e)}get openGoodsWidgetHandler(){return this._callbacks.openGoodsWidgetHandler}static getInstance(){return ds.instance?ds.instance:null}createStoryListViewModel(e){var{appearanceManager:t,identityFields:r,listType:i,ugcCardClickHandler:o}=e,n=Zn(e,["appearanceManager","identityFields","listType","ugcCardClickHandler"]);is(t);const s=new Dn(this),a=new Qn(t,s,Object.assign(Object.assign({},n),{identityFields:r,listType:i})).create();return this.handleStoryListViewModelEvents(a,{appearanceManager:t,listType:i,identityFields:r,ugcCardClickHandler:o}),a}handleStoryListViewModelEvents(e,t){e.on("clickOnStoryInternal",(r=>Jn(this,void 0,void 0,(function*(){yield this.initStoryReaderByStoryListViewModel(e,t.appearanceManager),this.handleClickOnStoryInternal(r,t.identityFields)})))).on("clickOnFavoriteCellInternal",(r=>Jn(this,void 0,void 0,(function*(){yield this.initStoryFavoriteReaderByStoryListViewModel(e,t.listType,t.appearanceManager),this.handleClickOnFavoriteCellInternal(r,t.identityFields)})))).on("clickOnUgcCardCellInternal",(()=>{var e;return null===(e=t.ugcCardClickHandler)||void 0===e?void 0:e.call(t)})).on("clickOnStoryDeepLink",(e=>{this.handleSetStoryOpened(e.id),this.handleClickOnStoryDeepLink(e,{listType:t.listType})})).on("clickOnStoryGame",(({id:e,gameInstanceId:r})=>{this.handleSetStoryOpened(e),this.openGame(r,t.appearanceManager)})).on("clickOnStory",(e=>this.handleClickOnStory(e,t.identityFields)))}initStoryReaderByStoryListViewModel(e,t){return Jn(this,void 0,void 0,(function*(){if(null!==this.storyReaderInstancePromise)return;const r=ss();this.storyReaderInstancePromise=this.initStoryReader(t,r);const i=yield this.getStoryReaderInstance();e.setStoryReader(i)}))}initStoryFavoriteReaderByStoryListViewModel(e,t,r){return Jn(this,void 0,void 0,(function*(){if(null!==this.storyFavoriteReaderInstancePromise)return;const t=ss();yield this.initStoryReaderByStoryListViewModel(e,r),this.storyFavoriteReaderInstancePromise=this.initStoryFavoriteReader(r,t)}))}handleClickOnStoryDeepLink(e,{listType:t}){const r={data:[[1,0,e.id,0,0]]},i=()=>{e.isDeeplink&&e.url&&this.clickOnButtonAction({src:Ji.STORY_LIST,payload:e})};t===Kr.UGC||this._config.disableStatistic?i():Rr("session/update",r,Sr.createFunctionWithTimeout(i,1e3))}handleClickOnFavoriteCellInternal(e,t){return Jn(this,void 0,void 0,(function*(){try{j()(this.onBeforeFavoriteReaderOpen)&&(yield this.onBeforeFavoriteReaderOpen());const r=Object.assign(Object.assign({},e),{storyList:ns(S.favorite)});(yield this.getStoryFavoriteReaderInstance()).openReader(r,{listType:S.favorite,identityFields:t})}catch(e){console.error(e)}}))}handleClickOnStory(e,t){if(0===e.id)this.emit("clickOnFavoriteCell",{feed:t.feedSlug});else{const r=t.feedSlug,i=t.filter,o=ts(r),n={title:null,tags:[],slidesCount:null,feed:null,filter:null,source:null},s=Jr.getState().find((t=>t.id===e.id));s&&(n.title=s.stat_title,n.tags=s.tags,n.slidesCount=s.slides_count),o===Kr.DEFAULT?n.feed=r:o===Kr.UGC&&(n.filter=i),n.source=b.list,this.emit("clickOnStory",Object.assign(Object.assign({},e),n))}}setTags(e){M()(e)&&(Ar.getInstance().checkTagsLength(e),(0,x.ib)({tags:e}))}setUserId(e){(N()(e)||W()(e))&&(Ar.getInstance().checkUserIdLength(e),(0,x.by)({userId:e}),jr())}setLang(e){N()(e)&&(0,x.rN)({lang:e})}setPlaceholders(e){R()(e)&&((0,x.Fn)({placeholders:e}),P(e))}setImagePlaceholders(e){R()(e)&&((0,x.qR)({imagePlaceholders:e}),Ai(e))}get storyReaderInstance(){return this._storyReaderInstance}getStoryReaderInstance(){return Jn(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{null===this._storyReaderInstance?null!==this.storyReaderInstancePromise?this.storyReaderInstancePromise.then((t=>{this._storyReaderInstance=t,e(t)})):t("_storyReaderInstance not init yet"):e(this._storyReaderInstance)}))}))}getStoryFavoriteReaderInstance(){return Jn(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{null===this._storyFavoriteReaderInstance?null!==this.storyFavoriteReaderInstancePromise?this.storyFavoriteReaderInstancePromise.then((t=>{this._storyFavoriteReaderInstance=t,e(t)})):t("_storyFavoriteReaderInstance not inited yet"):e(this._storyFavoriteReaderInstance)}))}))}handleClickOnStoryInternal(e,t){return Jn(this,void 0,void 0,(function*(){j()(this.onBeforeStoryReaderOpen)&&(yield this.onBeforeStoryReaderOpen());const r=(new Date).getTime(),i=ns(e.listType,t.feedSlug),o=ts(t.feedSlug);let n=Pr.getState().share;o===Kr.UGC&&(n=!1);const s=Object.assign(Object.assign({},e),{storyContext:yi(o,_i.getState()||mi(o,i.map((e=>e.id)))),storyList:i,hasShare:n,placeholders:as()}),a=yield this.getStoryReaderInstance();a.openReader(s,{listType:e.listType,identityFields:t});const l=yi(o,_i.getState());let d=null!==l&&""!==l.style;o===Kr.DEFAULT&&l&&li.getState()[o].length>0&&l.ids!==li.getState()[o]&&(d=!1);const c=Jr.getState().find((t=>t.id===e.id&&t.type===o));if(d||!c||c.slidesLoaded)d?c&&c.slidesLoaded||(yield Bi({ids:[e.id],feedSlug:t.feedSlug})):li.getState()[o].length&&(yield bi({ids:li.getState()[o],feedSlug:t.feedSlug}));else{let r=[];o===Kr.DEFAULT&&(r=li.getState()[o]),yield Ui({ids:r,id:e.id,feedSlug:t.feedSlug})}const u=li.getState()[o];u.length>0&&(yield Bi({ids:u,feedSlug:t.feedSlug}));const p=()=>{a.setStoriesAndContext({listType:e.listType,storyList:ns(e.listType,t.feedSlug),storyContext:yi(o,_i.getState()||mi(o,u))})},f=Math.max(0,300-((new Date).getTime()-r));f?setTimeout(p,f):p()}))}handleRedirectToStoryInternal(e){var t,r;return Jn(this,void 0,void 0,(function*(){const i=(new Date).getTime(),o="default",n=yield this.getStoryReaderInstance(),s=e.id,a=Qr(s),l={windowReferer:w.default,listType:S.default,id:a.id,storyContext:_i.getState(),storyList:[a],hasShare:Pr.getState().share,placeholders:as()};n.silentClose=!0,n.closeReader(),n.openReader(l,{listType:S.direct,feed:o}),setTimeout((()=>n.silentClose=!1),300);const d=yield Wi({id:s,feedSlug:o});if(N()(s)&&M()(d)){const e=null===(r=null===(t=d.find((e=>"story"===e.ref)))||void 0===t?void 0:t.body)||void 0===r?void 0:r.id;yield bi({ids:[e],feedSlug:o})}const c=Jr.getState().find((e=>e.id===s));if(void 0!==c){const t=()=>{n.setStoriesAndContext({listType:e.listType,storyList:[c],storyContext:yi(ts(o),_i.getState())})},r=Math.max(0,300-((new Date).getTime()-i));r?setTimeout(t,r):t()}return!0}))}handleSetStoryOpened(e){if(!Li()(Pr.getState().user_key)){const t=`u/${Pr.getState().user_key}/s_opened`;let r=function(e){let t=null;if($i){let r=window.localStorage.getItem(e);null!==r&&N()(r)&&r.trim().length>0&&(t=JSON.parse(r))}return t}(t);M()(r)||(r=[]),r.push(e),r=zi()(r),function(e,t){$i&&window.localStorage.setItem(e,JSON.stringify(t))}(t,r)}ui({id:e})}handleApiRequest(e,t){var r,i,o,n,s,a,l,d,c;return Jn(this,void 0,void 0,(function*(){let u=!1,p="",f={url:null!==(i=null===(r=e.data)||void 0===r?void 0:r.url)&&void 0!==i?i:"",method:null!==(n=null===(o=e.data)||void 0===o?void 0:o.method)&&void 0!==n?n:"get"};-1!==["post","put","path"].indexOf(null===(s=e.data)||void 0===s?void 0:s.method)?f.data=null!==(l=null===(a=e.data)||void 0===a?void 0:a.data)&&void 0!==l?l:void 0:f.params=null!==(c=null===(d=e.data)||void 0===d?void 0:d.params)&&void 0!==c?c:void 0;const h={requestId:e.id};try{const e=yield Ir.request(f);h.data=e.data,h.status=e.status,h.headers=e.headers,u=!0}catch(e){h.data=e,h.status=400,h.headers=[{}],p=e.toString()}t.rpcCb(e.cb,{requestId:e.id,success:u,data:h,err:p})}))}initStoryReader(e,t,r={}){return Jn(this,void 0,void 0,(function*(){const i=Nr.getState(),o=new V("body",{storyWidgetsResources:i}),n=()=>{let e=x.Tl.getState().lang||"en";const t=new RegExp(/^[a-zA-Z]+(-[a-zA-Z]+)?$/),r=e.match(t);if(null!==r&&null==r[1]){const r=navigator.language.match(t);null!==r&&null!=r[1]&&(e+=r[1])}return e},s=({storyReaderOptions:e,gameReaderOptions:t,appearanceCommon:r,overrideStoryReaderOptions:i,faviconApiUrl:o})=>{const s=e;return s.gameReaderOptions=t,Object.assign(Object.assign(Object.assign(Object.assign({},s),{appearanceCommon:r}),i),{faviconApiUrl:o,language:n()})},a=e.storyReaderOptions,l=e.gameReaderOptions;yield o.init(s({storyReaderOptions:a,gameReaderOptions:l,appearanceCommon:e.commonOptions,overrideStoryReaderOptions:r,faviconApiUrl:q.C.faviconApiUrl})),o.setFonts(t),Nr.getState().length>i.length&&(null==o||o.setStoryWidgetsResources(Nr.getState())),Nr.watch((e=>{null==o||o.setStoryWidgetsResources(e)})),o.setCallbacks({}),o.on("setStoryOpened",(e=>{this.handleSetStoryOpened(e.data.id),o.rpcCb(e.cb,{requestId:e.id,success:!0,data:e.data,err:""})})),o.on("updateStoryFavorite",(e=>Jn(this,void 0,void 0,(function*(){let t=!1;const r={favorite:void 0};let i="";try{const o=yield Ir.post(`story-favorite/${e.data.id}`,{value:e.data.favorite});void 0!==o.data.favorite?(t=!0,r.favorite=Boolean(o.data.favorite),di({id:e.data.id,favorite:r.favorite}),!1===r.favorite?Di({storiesIdsUserEntity:Zr.FAVORITE,storyList:oi.getState().filter((t=>t.id!==e.data.id))}):Di({storiesIdsUserEntity:Zr.FAVORITE,storyList:[...oi.getState(),...Jr.getState().filter((t=>t.id===e.data.id))]})):i="response.data.favorite is undefined"}catch(e){i=e.toString()}o.rpcCb(e.cb,{requestId:e.id,success:t,data:r,err:i})})))),o.on("updateStoryLike",(e=>Jn(this,void 0,void 0,(function*(){let t=!1;const r={like:void 0};let i="";try{const o=yield Ir.post(`story-like/${e.data.id}`,{value:e.data.like});void 0!==o.data.like?(t=!0,r.like=o.data.like,ci({id:e.data.id,like:r.like})):i="response.data.like is undefined"}catch(e){i=e.toString()}o.rpcCb(e.cb,{requestId:e.id,success:t,data:r,err:i})})))),o.on("getStorySharePath",(e=>Jn(this,void 0,void 0,(function*(){let t=!1;const r={url:void 0};let i="";try{const o=yield Ir.get(`story-share/${e.data.id}`,{});void 0!==o.data.url?(t=!0,r.url=o.data.url):i="response.data.url is undefined"}catch(e){i=e.toString()}o.rpcCb(e.cb,{requestId:e.id,success:t,data:r,err:i})})))),o.on("apiRequest",(e=>this.handleApiRequest(e,o))),o.on("updateStoriesStat",(e=>Jn(this,void 0,void 0,(function*(){var t,r,i,n;const s=null!==(n=null===(i=null===(r=null===(t=o.options)||void 0===t?void 0:t.sourceInfo)||void 0===r?void 0:r.identityFields)||void 0===i?void 0:i.feedSlug)&&void 0!==n?n:"";let a=!1,l="";if(ts(s)===Kr.UGC||this._config.disableStatistic)a=!0;else try{Rr("session/update",e.data,(()=>{})),a=!0}catch(e){l=e.toString()}o.rpcCb(e.cb,{requestId:e.id,success:a,data:{},err:l})})))),o.on("clickOnButton",(e=>{const t=()=>this.clickOnButtonAction({src:Ji.STORY_READER,payload:e});!this._config.disableStatistic&&e.dataForSending&&R()(e.dataForSending)&&Array.isArray(e.dataForSending.data)&&e.dataForSending.data.length>0?Rr("session/update",e.dataForSending,t):t()})),o.on("clickOnSwipeUpGoods",(t=>{o&&(this._goodsWidgetInstance=new yr(this,e,o,t),this._goodsWidgetInstance.once("close",(e=>{this._goodsWidgetInstance=null,o&&o.closeGoodsWidget(e)})))})),o.on("closeStoryReader",(e=>{ds.instance.closeGoodsWidget()}));["showSlide","showStory","closeStory","clickOnButton","likeStory","dislikeStory","favoriteStory","shareStory","shareStoryWithPath"].forEach((e=>o.on(e,(t=>{var r,i,n,s,a;const l=null===(r=o.options.sourceInfo)||void 0===r?void 0:r.listType,d=null===(n=null===(i=o.options.sourceInfo)||void 0===i?void 0:i.identityFields)||void 0===n?void 0:n.feedSlug,c=null===(a=null===(s=o.options.sourceInfo)||void 0===s?void 0:s.identityFields)||void 0===a?void 0:a.filter,u=ts(d),p={title:null,tags:[],slidesCount:null,feed:null,filter:null,source:null},f=Jr.getState().find((e=>e.id===t.id));if(f&&(p.title=f.stat_title,p.tags=f.tags,p.slidesCount=f.slides_count,f.type===Kr.UGC&&(p.ugcPayload=R()(f.payload)?f.payload:{})),u===Kr.DEFAULT?p.feed=d:u===Kr.UGC&&(p.filter=c),l===S.direct?p.source=b.direct:l===S.default?p.source=b.list:l===S.onboarding?p.source=b.onboarding:l===S.favorite&&(p.source=b.favorite),null!=t.index&&-1===["clickOnStory","showStory"].indexOf(e)&&(t.payload=null,f&&f.slides_payload&&Array.isArray(f.slides_payload))){const e=f.slides_payload.find((e=>e.slide_index===t.index));null!=e&&e.payload&&(t.payload=e.payload)}"clickOnButton"===e&&delete t.dataForSending,this.emit(e,Object.assign(Object.assign({},t),p))})))),o.on("redirectToStory",(e=>this.handleRedirectToStoryInternal(e))),o.on("openGameCenter",(({gameId:t})=>Jn(this,void 0,void 0,(function*(){const r=()=>{var e;o.resumeAndEnableViewerUI(),null===(e=this.gameReader)||void 0===e||e.off("closeReader",r)};yield this.openGame(t,e),this.gameReader&&(o.pauseAndBlockViewerUI({isInBackground:!0}),this.gameReader.on("closeReader",r))})))),o.on("closeStoryReader",(e=>{j()(this.onStoryReaderClosed)&&this.onStoryReaderClosed()}));const d=({storyReaderOptions:e,gameReaderOptions:t,appearanceCommon:i})=>Jn(this,void 0,void 0,(function*(){(yield this.getStoryReaderInstance()).setOptions(s({storyReaderOptions:e,gameReaderOptions:t,appearanceCommon:i,overrideStoryReaderOptions:r,faviconApiUrl:q.C.faviconApiUrl}))}));return e.on(_.EVENT_UPDATED_STORY_READER_OPTIONS,d),e.on(_.EVENT_UPDATED_COMMON_OPTIONS,d),e.on(_.EVENT_UPDATED_GAME_READER_OPTIONS,d),o.on("debugLog",(e=>{console.log("debugLog",e)})),o}))}initStoryFavoriteReader(e,t){return Jn(this,void 0,void 0,(function*(){if(null!==this._storyFavoriteReaderInstance)return this._storyFavoriteReaderInstance;const r=new br("body",{});return yield r.init({options:e.storyFavoriteReaderOptions,storiesListOptions:e.storiesListOptions}),r.setFonts(t),r.setCallbacks({}),r.on("closeReader",(()=>{try{window.focus()}catch(e){console.error(e)}})),r.on("clickOnStoryInternal",(e=>{var t,i,o;const n={title:null,tags:[],slidesCount:null,feed:null,filter:null,source:null},s=Jr.getState().find((t=>t.id===e.id));s&&(n.title=s.stat_title,n.tags=s.tags,n.slidesCount=s.slides_count),n.feed=null===(i=null===(t=r.options.sourceInfo)||void 0===t?void 0:t.identityFields)||void 0===i?void 0:i.feedSlug,n.source=b.favorite,this.emit("clickOnStory",Object.assign({id:e.id,index:e.index,isDeeplink:e.isDeeplink},n)),this.handleClickOnStoryInternal(e,null===(o=r.options.sourceInfo)||void 0===o?void 0:o.identityFields)})),(yield this.getStoryReaderInstance()).on("openStoryReader",(e=>r.openStoryReader(e))),(yield this.getStoryReaderInstance()).on("closeStoryReader",(e=>r.closeStoryReader(e))),r.on("closeReader",(e=>{j()(this.onFavoriteReaderClosed)&&this.onFavoriteReaderClosed()})),e.on(_.EVENT_UPDATED_FAVORITE_READER_OPTIONS,(e=>Jn(this,void 0,void 0,(function*(){(yield this.getStoryFavoriteReaderInstance()).setAppearanceOptions(e)})))),r}))}showOnboardingStories(e,t){return Jn(this,void 0,void 0,(function*(){const r=ss();let i="onboarding";t&&t.feed&&N()(t.feed)&&(i=t.feed),yield Ti({defaultList:!1,onboardingList:i,favoriteList:!1,onboardingTags:t?t.customTags:void 0,limit:t?t.limit:void 0}),null===this.storyReaderInstancePromise&&(this.storyReaderInstancePromise=this.initStoryReader(e,r));const o=ns(S.onboarding,i);if(o.length>0){const e={windowReferer:w.default,listType:S.onboarding,id:o[0].id};return yield this.handleClickOnStoryInternal(e,{feedSlug:i}),!0}return!1}))}showStory(e,t,r="default"){return Jn(this,void 0,void 0,(function*(){is(t);const r=ss();null===this.storyReaderInstancePromise&&(this.storyReaderInstancePromise=this.initStoryReader(t,r));const i=yield this.getStoryReaderInstance();return yield ls(e,i)}))}openGame(e,t,r={}){return Jn(this,void 0,void 0,(function*(){try{is(t);const i=yield this.initGameReader(t);yield i.openGame(e,r)}catch(e){console.error(e)}}))}closeGame(){return Jn(this,void 0,void 0,(function*(){return null!=this.gameReader&&this.gameReader.close()}))}initGameReader(e){return Jn(this,void 0,void 0,(function*(){if(this.gameReader)return this.gameReader;this.gameReader=new to("body",{});return yield this.gameReader.init({appearanceManager:e,clickOnButtonAction:e=>{this.clickOnButtonAction({src:Ji.GAME_READER,payload:e})},handleApiRequest:this.handleApiRequest.bind(this)}),this.initGameReaderEventHandlers(this.gameReader),this.gameReader}))}initGameReaderEventHandlers(e){return Jn(this,void 0,void 0,(function*(){e.on(Ki.StartGame,(()=>this.emit("startGame",{id:e.gameInstanceId}))).on(Ki.GameComplete,(t=>{Li()(t)?this.emit("closeGame",{id:e.gameInstanceId}):this.emit("finishGame",{id:e.gameInstanceId,result:t})}))}))}closeStoryReader(){return Jn(this,void 0,void 0,(function*(){if(null===this.storyReaderInstancePromise)return!1;const e=yield this.getStoryReaderInstance();this.closeGoodsWidget(),e.closeReader()}))}closeGoodsWidget(){this._goodsWidgetInstance&&(this._goodsWidgetInstance.close(),this._goodsWidgetInstance=null)}getUgcEditorConfig(){var e,t,r;return Jn(this,void 0,void 0,(function*(){let i=Pr.getState();(null===(e=null==i?void 0:i.session)||void 0===e?void 0:e.id)||(yield Fr({})),(null==i?void 0:i.editor)||(yield gi({}));const o=x.Tl.getState(),n=Pr.getState(),s="0.0.2";return{sessionId:n.session.id,apiKey:o.apiKey,editor:null!==(t=n.editor)&&void 0!==t?t:{},sdkVersion:s,appPackageId:o.appPackageId,deviceId:x.Ue.getState(),userId:null!=o.userId?String(o.userId):void 0,lang:null!==(r=o.lang)&&void 0!==r?r:"en"}}))}getNonce(){return this._config.nonce}get sdkVersionName(){return"0.0.2"}get sdkVersionCode(){return parseInt(2)}static get combinedPlaceholders(){return as()}}})(),__webpack_exports__})()));