1(()=>{var ee={1:p=>{"use strict";p.exports=function(i){return i[1]}},2:p=>{"use strict";p.exports=function(i){var s=[];return s.toString=function(){return this.map(function(l){var t="",n=typeof l[5]<"u";return l[4]&&(t+="@supports (".concat(l[4],") {")),l[2]&&(t+="@media ".concat(l[2]," {")),n&&(t+="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {")),t+=i(l),n&&(t+="}"),l[2]&&(t+="}"),l[4]&&(t+="}"),t}).join("")},s.i=function(l,t,n,d,f){typeof l=="string"&&(l=[[null,l,void 0]]);var a={};if(n)for(var g=0;g<this.length;g++){var O=this[g][0];O!=null&&(a[O]=!0)}for(var C=0;C<l.length;C++){var b=[].concat(l[C]);n&&a[b[0]]||(typeof f<"u"&&(typeof b[5]>"u"||(b[1]="@layer".concat(b[5].length>0?" ".concat(b[5]):""," {").concat(b[1],"}")),b[5]=f),t&&(b[2]&&(b[1]="@media ".concat(b[2]," {").concat(b[1],"}")),b[2]=t),d&&(b[4]?(b[1]="@supports (".concat(b[4],") {").concat(b[1],"}"),b[4]=d):b[4]="".concat(d)),s.push(b))}},s}},9:p=>{"use strict";var i=[];function s(t){for(var n=-1,d=0;d<i.length;d++)if(i[d].identifier===t){n=d;break}return n}function m(t,n){for(var d={},f=[],a=0;a<t.length;a++){var g=t[a],O=n.base?g[0]+n.base:g[0],C=d[O]||0,b="".concat(O," ").concat(C);d[O]=C+1;var $=s(b),N={css:g[1],media:g[2],sourceMap:g[3],supports:g[4],layer:g[5]};if($!==-1)i[$].references++,i[$].updater(N);else{var P=l(N,n);n.byIndex=a,i.splice(a,0,{identifier:b,updater:P,references:1})}f.push(b)}return f}function l(t,n){var d=n.domAPI(n);d.update(t);var f=function(g){if(g){if(g.css===t.css&&g.media===t.media&&g.sourceMap===t.sourceMap&&g.supports===t.supports&&g.layer===t.layer)return;d.update(t=g)}else d.remove()};return f}p.exports=function(t,n){n=n||{},t=t||[];var d=m(t,n);return function(a){a=a||[];for(var g=0;g<d.length;g++){var O=d[g],C=s(O);i[C].references--}for(var b=m(a,n),$=0;$<d.length;$++){var N=d[$],P=s(N);i[P].references===0&&(i[P].updater(),i.splice(P,1))}d=b}}},10:p=>{"use strict";var i=function(){var n=[];return function(f,a){return n[f]=a,n.filter(Boolean).join(` 2`)}}();function s(t,n,d,f){var a;if(d)a="";else{a="",f.supports&&(a+="@supports (".concat(f.supports,") {")),f.media&&(a+="@media ".concat(f.media," {"));var g=typeof f.layer<"u";g&&(a+="@layer".concat(f.layer.length>0?" ".concat(f.layer):""," {")),a+=f.css,g&&(a+="}"),f.media&&(a+="}"),f.supports&&(a+="}")}if(t.styleSheet)t.styleSheet.cssText=i(n,a);else{var O=document.createTextNode(a),C=t.childNodes;C[n]&&t.removeChild(C[n]),C.length?t.insertBefore(O,C[n]):t.appendChild(O)}}var m={singleton:null,singletonCounter:0};function l(t){if(typeof document>"u")return{update:function(){},remove:function(){}};var n=m.singletonCounter++,d=m.singleton||(m.singleton=t.insertStyleElement(t));return{update:function(a){s(d,n,!1,a)},remove:function(a){s(d,n,!0,a)}}}p.exports=l},11:p=>{"use strict";var i={};function s(l){if(typeof i[l]>"u"){var t=document.querySelector(l);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch{t=null}i[l]=t}return i[l]}function m(l,t){var n=s(l);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(t)}p.exports=m},12:(p,i,s)=>{"use strict";function m(l){var t=s.nc;t&&l.setAttribute("nonce",t)}p.exports=m},13:p=>{"use strict";function i(s){var m=document.createElement("style");return s.setAttributes(m,s.attributes),s.insert(m,s.options),m}p.exports=i},485:function(p,i){(function(s,m){m(i)})(this,function(s){"use strict";var m=typeof window>"u",l=(t.prototype.match=function(n,d){return d=this.userAgent.match(d),d&&1<d.length&&d[n]||""},Object.defineProperty(t.prototype,"isMobile",{get:function(){return!this.isTablet&&(/[^-]mobi/i.test(this.userAgent)||this.iOSDevice==="iphone"||this.iOSDevice==="ipod"||this.isAndroidDevice||/nexus\s*[0-6]\s*/i.test(this.userAgent))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTablet",{get:function(){return/tablet/i.test(this.userAgent)&&!/tablet pc/i.test(this.userAgent)||this.iOSDevice==="ipad"||this.isAndroidDevice&&!/[^-]mobi/i.test(this.userAgent)||!/nexus\s*[0-6]\s*/i.test(this.userAgent)&&/nexus\s*[0-9]+/i.test(this.userAgent)}
2,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesktop",{get:function(){return!this.isMobile&&!this.isTablet},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMacOS",{get:function(){return/macintosh/i.test(this.userAgent)&&{version:this.match(1,/mac os x (\d+(\.?_?\d+)+)/i).replace(/[_\s]/g,".").split(".").map(function(n){return n})[1]}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isWindows",{get:function(){return/windows /i.test(this.userAgent)&&{version:this.match(1,/Windows ((NT|XP)( \d\d?.\d)?)/i)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isiOS",{get:function(){return!!this.iOSDevice&&{version:this.match(1,/os (\d+([_\s]\d+)*) like mac os x/i).replace(/[_\s]/g,".")||this.match(1,/version\/(\d+(\.\d+)?)/i)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAndroid",{get:function(){return this.isAndroidDevice&&{version:this.match(1,/android[ \/-](\d+(\.\d+)*)/i)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"browser",{get:function(){var n=this.match(1,/version\/(\d+(\.\d+)?)/i);return/opera/i.test(this.userAgent)?{name:"Opera",version:n||this.match(1,/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(this.userAgent)?{name:"Opera",version:this.match(1,/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||n}:/SamsungBrowser/i.test(this.userAgent)?{name:"Samsung Internet for Android",version:n||this.match(1,/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(this.userAgent)?{name:"Yandex Browser",version:n||this.match(1,/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(this.userAgent)?{name:"UC Browser",version:this.match(1,/(?:ucbrowser)[\s\/](\d+(\.\d+)?)/i)}:/msie|trident/i.test(this.userAgent)?{name:"Internet Explorer",version:this.match(1,/(?:msie |rv:)(\d+(\.\d+)?)/i)}:/(edge|edgios|edga|edg)/i.test(this.userAgent)?{name:"Microsoft Edge",version:this.match(2,/(edge|edgios|edga|edg)\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(this.userAgent)?{name:"Firefox",version:this.match(1,/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)}:/chromium/i.test(this.userAgent)?{name:"Chromium",version:this.match(1,/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||n}:/chrome|crios|crmo/i.test(this.userAgent)?{name:"Chrome",version:this.match(1,/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/safari|applewebkit/i.test(this.userAgent)?{name:"Safari",version:n}:{name:this.match(1,/^(.*)\/(.*) /),version:this.match(2,/^(.*)\/(.*) /)}},enumerable:!1,configurable:!0}),t);function t(n){this.userAgent=n||(!m&&window.navigator?window.navigator.userAgent:""),this.isAndroidDevice=!/like android/i.test(this.userAgent)&&/android/i.test(this.userAgent),this.iOSDevice=this.match(1,/(iphone|ipod|ipad)/i).toLowerCase(),!m&&navigator.platform==="MacIntel"&&2<navigator.maxTouchPoints&&!window.MSStream&&(this.iOSDevice="ipad")}s.DetectUA=l,Object.defineProperty(s,"__esModule",{value:!0})})},486:(p,i,s)=>{var m=s(1),l=s(2),t=l(m);t.push([p.id,`.c5322,:root[data-theme=light] .c5322{--color-background:#f5f5f5;--color-backgroundLight:#fff;--color-backgroundDark:#dbdbdb;--color-text:#0f0f0fcc;--color-shadow:#00000054}:root[data-theme=dark] .c5322{--color-background:#292929;--color-backgroundLight:#303030;--color-backgroundDark:#212121;--color-text:#f5f5f5cc;--color-shadow:#00000040}.c5322{--transition:ease 160ms;align-items:center;background-color:#00000080;color:#fff;display:none;height:100%;justify-content:center;left:0;margin:0;opacity:0;padding:0;position:fixed;top:0;width:100%;will-change:opacity;z-index:99999}.c5322.f7ca8{animation:d1c03 .2s cubic-bezier(.39,.575,.565,1) forwards;display:flex}.ada8b{animation:b06eb .2s cubic-bezier(.39,.575,.565,1) forwards;border-radius:.22em;box-shadow:0 2em 2em -1em var(--color-shadow);flex:0 0 auto;flex-direction:column;height:100vh;margin:0;max-height:min(900px,100vh - 2rem);max-width:1600px;position:relative;width:90vw;will-change:transform,opacity}.ada8b,.ada8b button.b8f5a{background:var(--color-background);color:var(--color-text);display:flex;padding:0}.ada8b button.b8f5a{align-items:center;border:none;border-radius:3rem;cursor:pointer;height:3rem;justify-content:center;opacity:.3;position:absolute;right:-2.5rem;top:-1rem;transition:var(--transition);transition-property:background-color,opacity;width:3rem}.ada8b button.b8f5a:hover{background:var(--color-backgroundDark);opacity:.6}.ada8b button.b8f5a:active{background:var(--color-backgroundLight);
2opacity:.4}.ada8b button.b8f5a:after,.ada8b button.b8f5a:before{background-color:currentColor;content:"";display:block;height:18px;position:absolute;width:2px}.ada8b button.b8f5a:before{transform:rotate(45deg)}.ada8b button.b8f5a:after{transform:rotate(-45deg)}.ada8b .d9127{border:0;border-radius:.22em;height:100%;margin:0;padding:0;width:100%}@keyframes d1c03{0%{opacity:0}to{opacity:1}}@keyframes b06eb{0%{opacity:0;transform:scale(.93)}to{opacity:1;transform:scale(1)}}.cb1d1{background:linear-gradient(0deg,#a83f90,#d84bb8) no-repeat 100% 100%;border-radius:8px;box-sizing:border-box;color:#fff;display:inline-block;font-family:sans-serif;font-size:16px;line-height:36px;padding:0 36px 0 16px;position:relative;text-decoration:none;text-indent:0;text-shadow:-1px 1px 1px #0006;transition:filter .2s ease-in-out}.cb1d1:active,.cb1d1:hover{color:#fff;filter:brightness(1.1)}.cb1d1:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='38' height='40'%3E%3Cdefs%3E%3Csymbol id='a' viewBox='0 0 11.75 71.61'%3E%3Cpath fill='%23fff' d='M5.87 0C2.63 0 0 2.26 0 5.05v61.51c0 2.79 2.63 5 5.87 5s5.88-2.26 5.88-5V5.05C11.75 2.26 9.12 0 5.87 0'/%3E%3C/symbol%3E%3Csymbol id='b' viewBox='0 0 7.84 10.13'%3E%3Cg opacity='.33'%3E%3Cuse xlink:href='%23a' width='11.75' height='71.61' transform='scale(.14)'/%3E%3Cuse xlink:href='%23a' width='11.75' height='71.61' transform='translate(3.09)scale(.14)'/%3E%3Cuse xlink:href='%23a' width='11.75' height='71.61' transform='translate(6.17)scale(.14)'/%3E%3C/g%3E%3C/symbol%3E%3C/defs%3E%3Cpath fill='%23ea81a7' d='m10.77 10.19-10.34 9a1.24 1.24 0 0 0-.12 1.76l.08.05 12.09-4.3Z'/%3E%3Cpath fill='%23ed8eb9' d='M30.2 7.75a.21.21 0 0 0-.32 0A3.53 3.53 0 0 1 25 7.23a3.52 3.52 0 0 1 .19-4.93c.19-.17 0-.31 0-.31L23.83.43a1.24 1.24 0 0 0-1.76-.12l-11.3 9.82a23.6 23.6 0 0 0 1.55 6.79l19.49-7.09a1.2 1.2 0 0 0-.27-.53Z'/%3E%3Cuse xlink:href='%23b' width='7.84' height='10.13' transform='rotate(-40.9 22.3 -15.073)scale(.86)'/%3E%3Cpath fill='%235dc6b6' d='M13.59 16.18 1 20.63a1.41 1.41 0 0 0-.86 1.8l.75 2.12a.36.36 0 0 0 .36.21L18 24.59Z'/%3E%3Cpath fill='%2365cebc' d='M37 21a.23.23 0 0 0-.32-.16 4 4 0 0 1-4.95-2.55 4 4 0 0 1 2.27-5.1.22.22 0 0 0 .16-.31l-.77-2.19a1.41 1.41 0 0 0-1.79-.86l-19.27 6.79a23.8 23.8 0 0 0 4 6.88l21.24 1a1.43 1.43 0 0 0 .19-1.29Z'/%3E%3Cuse xlink:href='%23b' width='7.84' height='10.13' transform='rotate(-19.34 62.744 -49.428)scale(.96)'/%3E%3Cpath fill='%23f7bc39' d='M37.38 35.88a4.22 4.22 0 0 1 0-8.43c.29 0 .26-.25.26-.25v-2.42a1.46 1.46 0 0 0-1.46-1.46H2.58a1.47 1.47 0 0 0-1.46 1.46v2.34s0 .33.29.33a4.12 4.12 0 0 1 3.93 4.21 4.15 4.15 0 0 1-4 4.22.22.22 0 0 0-.22.24v2.42A1.46 1.46 0 0 0 2.58 40h33.6a1.46 1.46 0 0 0 1.46-1.46v-2.4a.24.24 0 0 0-.26-.26'/%3E%3Cpath fill='%23f2d064' d='M37.64 24.78a1.46 1.46 0 0 0-1.46-1.46h-20A23.76 23.76 0 0 0 33.43 32v-.37a4.12 4.12 0 0 1 4-4.21c.29 0 .26-.25.26-.25Z'/%3E%3Cuse xlink:href='%23b' width='7.84' height='10.13' transform='translate(21.98 26.58)'/%3E%3C/svg%3E");bottom:0;content:"";display:block;font-size:0;height:40px;position:absolute;right:-14px;text-indent:-9999px;width:38px}`,""]),t.locals={modal:"c5322",open:"f7ca8","fade-in":"d1c03",fadeIn:"d1c03",dialog:"ada8b","scale-fade-in":"b06eb",scaleFadeIn:"b06eb",close:"b8f5a",iframe:"d9127",button:"cb1d1"},p.exports=t}},G={};function _(p){var i=G[p];if(i!==void 0)return i.exports;var s=G[p]={id:p,exports:{}};return ee[p].call(s.exports,s,s.exports,_),s.exports}_.n=p=>{var i=p&&p.__esModule?()=>p.default:()=>p;return _.d(i,{a:i}),i},_.d=(p,i)=>{for(var s in i)_.o(i,s)&&!_.o(p,s)&&Object.defineProperty(p,s,{enumerable:!0,get:i[s]})},_.o=(p,i)=>Object.prototype.hasOwnProperty.call(p,i),_.nc=void 0;var Te={};(()=>{"use strict";var p=Object.defineProperty,i=Object.defineProperties,s=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable,n=(e,o,r)=>o in e?p(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,d=(e,o)=>{for(var r in o||(o={}))l.call(o,r)&&n(e,r,o[r]);if(m)for(var r of m(o))t.call(o,r)&&n(e,r,o[r]);return e},f=(e,o)=>i(e,s(o)),a=(e=>(e.OPEN="open",e.OPEN_ACTIVITIES="open-activities",e.OPEN_ACTIVITY="open-activity",e.OPEN_EVENT="open-event",e.OPEN_CART="open-cart",e.OPEN_PAYMENT="open-payment",e.OPEN_CATALOG="open-catalog",e.CART_EMPTY="cart-empty",e.CART_FULL="cart-full",e.PAYMENT_PAID="payment-paid",e.PAYMENT_SUCCESS="payment-success",e.PAYMENT_ERROR="payment-error",e.PAYMENT_EXPIRED="payment-expired",e.PAYMENT_CANCEL="payment-cancel",e.CLOSING="closing",e.CLOSE="close",e))(a||{});const g=()=>window!==window.parent,O=()=>
2!!window.opener,C="p24widget",b=e=>{var o,r;return g()?(o=window.parent)==null?void 0:o.postMessage(f(d({},e),{source:C}),"*"):O()?(r=window.opener)==null?void 0:r.postMessage(f(d({},e),{source:C}),"*"):window.postMessage(f(d({},e),{source:C}),"*")},$=()=>b,N="[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}",P=new RegExp("^"+N+"$","i"),H=(e="")=>P.test(e),te="embed",T=document.getElementsByTagName("head")[0],Re=/^[.#]\w+/,re=/^20\d{2}\/\d{2}\/\d{2}$/,ne=/^\d{2}:\d{2}$/,oe=()=>{try{return window.self!==window.top}catch{return!0}};var ae=_(485);const ie=new ae.DetectUA,se=()=>ie,{isMobile:ce,isTablet:ue,isAndroid:de,isiOS:le}=se(),pe=(e=768)=>window.innerWidth<=e||!!(ce||ue||de||le),fe=e=>e.stopPropagation();var he=_(9),be=_.n(he),ve=_(10),ge=_.n(ve),me=_(11),we=_.n(me),ye=_(12),_e=_.n(ye),Ae=_(13),Ee=_.n(Ae),xe=_(486),B=_.n(xe),U={};U.setAttributes=_e(),U.insert=we().bind(null,"head"),U.domAPI=ge(),U.insertStyleElement=Ee();var Ue=be()(B(),U);const D=B()&&B().locals?B().locals:void 0,x={info:()=>null,error:e=>{throw new Error(`[p24w] '${e}'`)}},Ce=e=>{window.open(e)},Se=e=>{const o=document.querySelector(`.${D.modal}`)||Oe(),r=o.querySelector("iframe"),c=()=>{var u;x.info("modal open",e),o.classList.add(D.open),(u=document.body.parentElement)==null||u.classList.add("no-scroll")};r&&(r.setAttribute("src",e),setTimeout(c))},I=e=>e?pe()||oe()?Ce(e):Se(e):void 0,Oe=()=>{x.info("modal start init");const e=()=>{var w,y;(w=u.contentWindow)==null||w.postMessage({source:"p24widget",type:a.CLOSE},"*"),v.classList.remove(D.open),(y=document.body.parentElement)==null||y.classList.remove("no-scroll"),u.setAttribute("src","")},o=w=>{w.data.source==="p24widget"&&w.data.type===a.CLOSE&&e()},r=w=>{w.code==="Escape"&&c()},c=()=>{var w;if(window.p24Widget.status.widget!=="open")return e();(w=u.contentWindow)==null||w.postMessage({source:"p24widget",type:a.CLOSING},"*")},u=document.createElement("iframe");u.setAttribute("class",D.iframe),u.setAttribute("allowtransparency",""),u.setAttribute("src","");const E=document.createElement("button");E.setAttribute("class",D.close),E.addEventListener("click",c);const h=document.createElement("section");h.setAttribute("class",D.dialog),h.addEventListener("click",fe),h.appendChild(E),h.appendChild(u);const v=document.createElement("aside");return v.setAttribute("class",D.modal),v.addEventListener("click",c),v.appendChild(h),document.body.appendChild(v),window.removeEventListener("keydown",r),window.addEventListener("keydown",r),window.addEventListener("message",o),x.info("modal ready"),v},We=null;var Q=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,De=(e,o)=>{var r={};for(var c in e)ke.call(e,c)&&o.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&Q)for(var c of Q(e))o.indexOf(c)<0&&$e.call(e,c)&&(r[c]=e[c]);return r};const Y=(e={})=>{var o=e,{ordersUrl:r}=o,c=De(o,["ordersUrl"]);const u=new URLSearchParams;return Object.entries(c).forEach(([E,h])=>{if(Array.isArray(h))for(const v of h)h&&u.append(E,v);else h&&u.append(E,String(h))}),r&&u.append("ordersUrl",/^https?:/i.test(r)?r:new URL(r,location.origin).href),u},L=(e,o,r={})=>{var c,u,E;const{baseUrl:h,app:v,ordersUrl:w}=o,y=(A,R)=>A in r?r[A]:A in o?o[A]:R,S=y("city"),k=y("place"),F=y("activity"),q=y("yandex"),Z=y("mode",te),V=y("theme"),j=y("language"),W=Y({city:S,place:k,yandex:q,ordersUrl:w,theme:V,language:j});let M=`${h}/${v}?${W}`;switch(e){case"reserve-edit":{const{uuid:A}=r;A&&(M=`${h}/${v}/reserve/edit/${A}?${W}`);break}case"reserve-pay":{const{uuid:A}=r;A&&(M=`${h}/${v}/reserve/pay/${A}?${W}`);break}case"cart":{const{uuid:A}=r;A&&(M=`${h}/${v}/cart/${A}?${W}`);break}case"activity":{F&&(M=`${h}/${v}/activity/${F}?${W}`);break}case"event":{const{event:A,redirect:R}=r;if(R){M=`${h}/redirect?app=${v}&${Y({city:S,place:k,event:A,yandex:q,ordersUrl:w,mode:Z,theme:V,language:j})}`;break}F&&A&&(M=`${h}/${v}/activity/${F}/event/${A}?${Y({city:S,place:k,yandex:q,ordersUrl:w,mode:Z,theme:V,language:j})}`);break}case"lookup":{const A=r,[R,J,K]=[(c=A.showDate)!=null?c:"",(u=A.showTime)!=null?u:"",(E=A.filmName)!=null?E:""].map(decodeURIComponent);!!(K&&re.test(R)&&ne.test(J))&&(M=`${h}/lookup?app=${v}&${Y({showDate:R,showTime:J,filmName:K,city:S,place:k,yandex:q,ordersUrl:w,mode:Z,theme:V,language:j})}`);break}}return M.replace(/\?$/,"")},Ie=e=>{const o=typeof e.btn!="string"?e.btn:{selector:e.btn},{selector:r="body",text:c="ÐÑпиÑÑ Ð±Ð¸Ð»ÐµÑÑ",className:u=D.button,css:E=""}=o||{},h=document.querySelector(r),v=L("widget",e,{});if(!v)return x.error("Empty link");
2if(!h)return x.error(`Button target container '${r}' not found`);x.info("button start init",{url:v,params:o});const w=document.querySelector("a#p24link"),y=w||document.createElement("a");if(y.setAttribute("id","p24link"),y.setAttribute("class",u),y.setAttribute("target","_blank"),y.setAttribute("href",v),y.innerHTML=c,E){const S=T.querySelector('style[data-prop-widget="link-style"]')||document.createElement("style");S.innerHTML="",S.setAttribute("data-prop-widget","link-style"),S.appendChild(document.createTextNode(E)),T.appendChild(S)}if(h.replaceChildren(y),!w)y.addEventListener("click",S=>{S.preventDefault(),I(v)}),x.info("button ready");else return x.info("button updated")},Le=({script:e,baseUrl:o,onload:r})=>{var c;let u=T.querySelector(`script[data-prop-script="${e}"]`);u&&((c=u.parentNode)==null||c.removeChild(u)),u=document.createElement("script"),u.setAttribute("src",new URL(e,o).href),u.setAttribute("name",`p24widget-${e}`),u.setAttribute("type","text/javascript"),u.setAttribute("data-prop-script",e),u.onload=r,T.appendChild(u)},Me=({key:e,css:o,name:r})=>{let c=T.querySelector(`style[data-prop-widget="${e}"]`);c||(c=document.createElement("style"),c.innerHTML="",c.setAttribute("name",r),c.setAttribute("data-prop-widget",e),c.appendChild(document.createTextNode(o)),T.appendChild(c))},Pe=({$target:e,app:o,baseUrl:r,name:c,city:u,place:E,className:h,data:v})=>{e.setAttribute("data-prop-app",o),e.setAttribute("data-prop-widget",c),e.setAttribute("data-prop-baseUrl",r),u&&e.setAttribute("data-prop-city",u),E&&e.setAttribute("data-prop-place",E),v&&typeof v=="object"&&Object.entries(v).forEach(([w,y])=>{if(["selector","css"].includes(w))return;const S=`data-prop-${w}`,k=encodeURI(String(y));e.setAttribute(S,k)}),h&&e.classList.add(h)},z=(e,o)=>{const{app:r,baseUrl:c=""}=o,u=e,E=typeof o[u]!="string"?o[u]:{selector:o[u]},{selector:h="body",css:v,className:w}=E||{},{city:y,place:S}=o||{},k=h&&document.querySelector(h);if(!k)return x.error(`Ðе найден конÑÐµÐ¹Ð½ÐµÑ '${h}'`);x.info(`${e} start init`,{app:r,params:E}),Pe({$target:k,app:r,baseUrl:c,name:e,className:w,city:y,place:S,data:E}),v&&Me({name:e,key:`${e}-style`,css:v}),Le({baseUrl:c,script:`external/${e}.js`,onload:()=>x.info(`${e} ready`,k)})},X=e=>{if(e.data.source==="p24widget")switch(x.info("message",e.data),e.data.type){case a.OPEN:case a.OPEN_ACTIVITIES:case a.OPEN_ACTIVITY:case a.OPEN_EVENT:case a.OPEN_CART:case a.OPEN_PAYMENT:return window.p24Widget.status.widget="open";case a.CART_EMPTY:return window.p24Widget.status.cart="empty";case a.CART_FULL:return window.p24Widget.status.cart="full";case a.PAYMENT_SUCCESS:return window.p24Widget.status.payment="success";case a.PAYMENT_ERROR:return window.p24Widget.status.payment="error";case a.PAYMENT_CANCEL:return window.p24Widget.status.payment="canceled";case a.CLOSING:return window.p24Widget.status.widget="closing";case a.CLOSE:return window.p24Widget.status.widget="closed"}};function Ne(e){try{if(x.info("init",{initParams:e}),!/^(https?:\/\/)\w+((:\d+)?\/\S*)?/.test(e.baseUrl))return x.error("Ðе Ñказан адÑÐµÑ Ð²Ð¸Ð´Ð¶ÐµÑа!");if(!H(e.app))return x.error("Ðе Ñказан клÑÑ Ð¿ÑиложениÑ!");if(e.city&&!H(e.city))return x.error("ÐевеÑно Ñказан гоÑод!");if(e.place&&!H(e.place))return x.error("ÐевеÑно Ñказано меÑÑо!");const o={openWidget:r=>I(L("widget",e,r)),openActivity:r=>I(L("activity",e,r)),openEvent:r=>I(L("event",e,r)),showHall:r=>I(L("lookup",e,r)),openCart:r=>I(L("cart",e,r)),reserveEdit:r=>I(L("reserve-edit",e,r)),reservePay:r=>I(L("reserve-pay",e,r)),params:e,status:{widget:"closed",cart:"empty",payment:"empty"}};return e.btn&&Ie(e),e.schedule&&z("schedule",e),e.activities&&z("activities",e),e.activity&&z("activity",e),window.removeEventListener("message",X),window.addEventListener("message",X),window.p24Widget=window.prebookManager=o,x.info("ready",o),o}catch(o){console.error(o,e)}}window.p24WidgetManager=Ne})()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.