PageSourceSearch

https://blog.studybugs.com/a/487.df92daad.js

js studybugs.com collected 2026-10-01 15:36:01 UTC 165,939 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[487],{68972:function(t,e,n){"use strict";var r=n(51786),i=n.n(r),o=n(45458),u=(n(28706),n(2008),n(62062),n(18111),n(22489),n(61701),n(26099),n(4523)),a=n(71725),s=n(15879),c=n(30442),l=n(85152),f=n(65216),p=n(1794),d=(n(80915),n(45725));i().components.register("user-menu",{viewModel:function(t){var e=i().pureComputed(function(){var e,n,r=i().unwrap(null!==(e=t.prependedItems)&&void 0!==e?e:[]),u=i().unwrap(null!==(n=t.extraItems)&&void 0!==n?n:[]);return[].concat((0,o.A)(r),[{label:"Settings",iconHtml:a.A.settings,select:c.O,divider:!u.length}],(0,o.A)(u),[{label:"Studybugs Blog",iconHtml:a.A.blog,select:function(){return window.location.href=f.A.params.uris.blog}}],(0,o.A)(d.o.map(function(t,e){return{label:t.label,select:function(){return window.open(t.href)},divider:e===d.o.length-1}})),[{label:"Sign Out",iconHtml:a.A.signOut,select:l.A.signOut}])}),n=i().pureComputed(function(){return u.Ay.filter(e(),function(t){return!(t.hidden&&t.hidden())})}),r=f.A.m.user,h=i().pureComputed(function(){var t=r();if(t)return t.profilePicInfo()?(0,s.t)(t.id,t.profilePicInfo(),!1):void 0}),v=i().pureComputed(function(){var t=r();return t?(0,p.o)(t.firstName()):""}),y=i().pureComputed(function(){var t=r();return t?(0,p.X)(t.id):""});return{items:n,user:r,picUrl:h,initial:v,background:y}},template:'\n    <sw-menu params="items: items">
1\n      <span class="pic">\n        <sw-avatar class="member" params="imgSrc: picUrl, text: initial, background: background"></sw-avatar>\n      </span>\n      <span class="name"><span>{{user().fullName}}</span></span>\n    </sw-menu>\n    <settings></settings>'}),i().components.register("aux-menu",{viewModel:function(t){return{extraUserMenuItems:t.extraUserMenuItems,prependedUserMenuItems:t.prependedUserMenuItems}},template:'\n    <menu-item class="userMenu">\n      <user-menu params="extraItems: extraUserMenuItems, prependedItems: prependedUserMenuItems"></user-menu>\n    </menu-item>\n    {{#template {nodes: $componentTemplateNodes, data: $parent}}}{{/template}}'})},46770:function(t,e,n){"use strict";n.d(e,{Hy:function(){return r},l3:function(){return i}});var r={collection:'\n    <svg viewBox="0 0 17.3 17.3">\n      <g>\n        <path d="M3.957,-0c2.184,0 3.957,1.791 3.957,3.997c0,2.206 -1.773,3.997 -3.957,3.997c-2.184,0 -3.957,-1.791 -3.957,-3.997c0,-2.206 1.773,-3.997 3.957,-3.997Zm0,1.4c-1.415,0 -2.557,1.167 -2.557,2.597c0,1.429 1.142,2.597 2.557,2.597c1.415,0 2.557,-1.167 2.557,-2.597c0,-1.429 -1.142,-2.597 -2.557,-2.597Z" />\n        <path d="M13.391,-0c2.184,0 3.957,1.791 3.957,3.997c0,2.206 -1.773,3.997 -3.957,3.997c-2.184,0 -3.957,-1.791 -3.957,-3.997c0,-2.206 1.773,-3.997 3.957,-3.997Zm0,1.4c-1.415,0 -2.557,1.167 -2.557,2.597c0,1.429 1.142,2.597 2.557,2.597c1.415,0 2.557,-1.167 2.557,-2.597c0,-1.429 -1.142,-2.597 -2.557,-2.597Z" />\n        <path d="M13.391,9.354c2.158,0 3.909,1.769 3.909,3.949c0,2.179 -1.752,3.949 -3.909,3.949c-2.158,0 -3.909,-1.769 -3.909,-3.949c0,-2.179 1.752,-3.949 3.909,-3.949Zm0,1.4c-1.389,0 -2.509,1.146 -2.509,2.549c0,1.403 1.12,2.549 2.509,2.549c1.389,0 2.509,-1.146 2.509,-2.549c0,-1.403 -1.12,-2.549 -2.509,-2.549Z" />\n        <path d="M3.909,9.354c2.158,0 3.909,1.769 3.909,3.949c0,2.179 -1.752,3.949 -3.909,3.949c-2.158,0 -3.909,-1.769 -3.909,-3.949c0,-2.179 1.752,-3.949 3.909,-3.949Zm0,1.4c-1.389,0 -2.509,1.146 -2.509,2.549c0,1.403 1.12,2.549 2.509,2.549c1.389,0 2.509,-1.146 2.509,-2.549c0,-1.403 -1.12,-2.549 -2.509,-2.549Z" />\n      </g>\n    </svg>',addCollectionItem:'\n    <svg viewBox="0 0 14 14" class="studybugs-icon">\n      <path d="M13.958,3.832c-0,0.11 -0.09,0.2 -0.2,0.2l-2.2,-0l-0,2.2c-0,0.11 -0.09,0.2 -0.2,0.2l-1.2,-0c-0.111,-0 -0.2,-0.09 -0.2,-0.2l-0,-2.2l-2.2,-0c-0.111,-0 -0.2,-0.09 -0.2,-0.2l-0,-1.2c-0,-0.111 0.089,-0.2 0.2,-0.2l2.2,-0l-0,-2.2c-0,-0.111 0.089,-0.2 0.2,-0.2l1.2,-0c0.11,-0 0.2,0.089 0.2,0.2l-0,2.2l2.2,-0c0.11,-0 0.2,0.089 0.2,0.2l-0,1.2Z" />\n      <path d="M3.216,-0c1.775,-0 3.216,1.441 3.216,3.216c-0,1.775 -1.441,3.216 -3.216,3.216c-1.775,-0 -3.216,-1.441 -3.216,-3.216c0,-1.775 1.441,-3.216 3.216,-3.216Zm-0,0.958c-1.246,-0 -2.258,1.012 -2.258,2.258c-0,1.246 1.012,2.258 2.258,2.258c1.246,-0 2.258,-1.012 2.258,-2.258c-0,-1.246 -1.012,-2.258 -2.258,-2.258Z" />\n      <path d="M3.216,7.526c1.775,0 3.216,1.441 3.216,3.216c-0,1.775 -1.441,3.216 -3.216,3.216c-1.775,-0 -3.216,-1.441 -3.216,-3.216c0,-1.775 1.441,-3.216 3.216,-3.216Zm-0,0.958c-1.246,0 -2.258,1.012 -2.258,2.258c-0,1.246 1.012,2.258 2.258,2.258c1.246,-0 2.258,-1.012 2.258,-2.258c-0,-1.246 -1.012,-2.258 -2.258,-2.258Z" />\n      <path d="M10.742,7.526c1.775,0 3.216,1.441 3.216,3.216c-0,1.775 -1.441,3.216 -3.216,3.216c-1.775,-0 -3.216,-1.441 -3.216,-3.216c0,-1.775 1.441,-3.216 3.216,-3.216Zm0,0.958c-1.246,0 -2.258,1.012 -2.258,2.258c0,1.246 1.012,2.258 2.258,2.258c1.246,-0 2.258,-1.012 2.258,-2.258c0,-1.246 -1.012,-2.258 -2.258,-2.258Z" />\n    </svg>',checkedCollectionItem:'\n    <svg viewBox="0 0 14 14" class="studybugs-icon">\n      <path d="M3.216,0c1.775,0 3.216,1.441 3.216,3.216c-0,1.775 -1.441,3.216 -3.216,3.216c-1.775,-0 -3.216,-1.441 -3.216,-3.216c-0,-1.775 1.441,-3.216 3.216,-3.216Zm-0,0.958c-1.246,-0 -2.258,1.012 -2.258,2.258c-0,1.246 1.012,2.258 2.258,2.258c1.246,-0 2.258,-1.012 2.258,-2.258c-0,-1.246 -1.012,-2.258 -2.258,-2.258Z" />\n      <path d="M13.849,1.096c0.095,0.091 0.104,0.239 0.019,0.34l-3.608,4.268c-0.194,0.229 -0.545,0.235 -0.745,0.013l-1.925,-2.134c-0.086,-0.095 -0.085,-0.241 0.003,-0.334l0.562,-0.601c0.082,-0.088 0.214,-0.104 0.314,-0.041l1.292,0.823l3.252,-2.818c0.096,-0.083 0.24,-0.08 0.332,0.007l0.504,0.477Z" />\n      <path d="M3.216,7.526c1.775,0 3.216,1.441 3.216,3.216c-0,1.7
175 -1.441,3.216 -3.216,3.216c-1.775,-0 -3.216,-1.441 -3.216,-3.216c-0,-1.775 1.441,-3.216 3.216,-3.216Zm-0,0.958c-1.246,0 -2.258,1.012 -2.258,2.258c-0,1.246 1.012,2.258 2.258,2.258c1.246,-0 2.258,-1.012 2.258,-2.258c-0,-1.246 -1.012,-2.258 -2.258,-2.258Z" />\n      <path d="M10.742,7.526c1.775,0 3.216,1.441 3.216,3.216c-0,1.775 -1.441,3.216 -3.216,3.216c-1.775,-0 -3.216,-1.441 -3.216,-3.216c0,-1.775 1.441,-3.216 3.216,-3.216Zm0,0.958c-1.246,0 -2.258,1.012 -2.258,2.258c0,1.246 1.012,2.258 2.258,2.258c1.246,-0 2.258,-1.012 2.258,-2.258c0,-1.246 -1.012,-2.258 -2.258,-2.258Z" />\n    </svg>',cross:n(66429),openInAssistant:n(63250).qS,pencil:'\n    <svg viewBox="0 0 13 13" class="studybugs-icon">\n      <path d="M8.294,0.428c0.571,-0.571 1.495,-0.571 2.066,-0l2.212,2.212c0.571,0.571 0.571,1.495\n        0,2.066l-6.465,6.465c-0.359,0.359 -0.802,0.622\n        -1.289,0.766l-3.451,1.019l-0.284,0.044l-0.28,-0.033l-0.262,-0.105l-0.229,-0.174l-0.174,-0.229l-0.105,        -0.262l-0.033,-0.28l0.043,-0.284l1.017,-3.448c0.144,-0.487\n        0.407,-0.93 0.766,-1.289l6.468,-6.468Zm1.609,5.049l-2.38,-2.38l-4.748,4.748c-0.2,0.2\n        -0.347,0.448 -0.428,0.72l-0.873,2.96l2.964,-0.875c0.272,-0.08 0.519,-0.227\n        0.72,-0.428l4.745,-4.745Zm-1.431,-3.329l2.38,2.38l0.771,-0.771c0.047,-0.046 0.047,-0.121\n        0,-0.168l-2.212,-2.212c-0.047,-0.047 -0.122,-0.047 -0.168,-0l-0.771,0.771Z" />\n    </svg>',arrowCircular:'\n    <svg viewBox="0 0 13 13" class="studybugs-icon">\n      <path d="M8.597,3.326l0.713,-0.803c-0.97,-0.689 -2.164,-1.009 -3.387,-0.863c-3.016,0.359\n        -5.069,3.418 -4.022,6.47c0.492,1.436 1.669,2.577 3.12,3.021c2.373,0.725\n        4.715,-0.376 5.775,-2.353c0.13,-0.243 0.424,-0.343 0.678,-0.237l0.501,0.208c0.297,0.123 0.422,0.476\n        0.272,0.759c-0.992,1.88 -2.851,3.173 -4.98,3.426c-0.26,0.031 -0.517,0.046 -0.772,0.046c-3.244,0 -6.057,-2.433\n        -6.449,-5.732c-0.423,-3.558 2.128,-6.798 5.686,-7.221c1.689,-0.203 3.346,0.258\n        4.666,1.252l0.75,-0.844c0.146,-0.163 0.415,-0.096 0.466,0.116l0.797,3.278c0.045,0.184 -0.107,0.356\n        -0.296,0.333l-3.349,-0.407c-0.216,-0.027 -0.315,-0.286 -0.169,-0.449" />\n    </svg>',smallCircleGrid:'\n    <svg viewBox="0 0 8 8" class="studybugs-icon">\n      <circle cx="1.444" cy="1.444" r="1.444" />\n      <circle cx="6.5" cy="1.444" r="1.444" />\n      <circle cx="6.5" cy="6.5" r="1.444" />\n      <circle cx="1.444" cy="6.5" r="1.444" />\n    </svg>',dashedCorner:'\n    <svg viewBox="0 0 12 12" class="studybugs-icon">\n      <path d="M10.715,0.146c0.195,-0.195 0.512,-0.195 0.707,0c0.195,0.195 0.195,0.512\n        -0,0.707l-10.569,10.569c-0.195,0.195 -0.512,0.195 -0.707,-0c-0.195,-0.195 -0.195,-0.512\n        0,-0.707l10.569,-10.569Z" />\n      <path d="M10.715,3.945c0.195,-0.195 0.512,-0.195 0.707,0c0.195,0.195 0.195,0.512\n        -0,0.707l-6.877,6.877c-0.195,0.195 -0.512,0.195 -0.707,0c-0.195,-0.195 -0.195,-0.512 -0,-0.707l6.877,-6.877Z" />\n      <path d="M10.715,7.637c0.195,-0.195 0.512,-0.195 0.707,-0c0.195,0.195 0.195,0.512\n        -0,0.707l-3.185,3.185c-0.195,0.195 -0.512,0.195 -0.707,0c-0.196,-0.195 -0.196,-0.512 -0,-0.707l3.185,-3.185Z" />\n    </svg>'},i={checkMarkCircleIcon:'\n  <svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\n    <mask id="a" width="24" height="24" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha">\n      <path fill="#d9d9d9" d="M0 0h24v24H0z"/>\n    </mask>\n    <g mask="url(#a)">\n      <path fill="#008361" d="m10.6 13.8-2.15-2.15a1 1 0 0 0-.7-.28q-.42 0-.7.28a1 1 0 0 0-.27.7q0 .43.27.7L9.9\n        15.9a.96.96 0 0 0 1.4 0l5.65-5.65a1 1 0 0 0 .28-.7q0-.43-.28-.7a1 1 0 0 0-.7-.28q-.43 0-.7.28zM12 22a10.1 10.1\n        0 0 1-9.21-6.1A10 10 0 0 1 2 12q0-2.07.79-3.9A10 10 0 0 1 8.1 2.79 10 10 0 0 1 12 2q2.07 0 3.9.79a10 10 0 0 1\n        5.31 5.31q.8 1.83.79 3.9 0 2.07-.79 3.9a10 10 0 0 1-5.31 5.31A10 10 0 0 1 12 22"/>\n    </g>\n  </svg>\n',circleIcon:'\n  <svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\n    <mask id="a" width="24" height="24" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha">\n      <path fill="#d9d9d9" d="M0 0h24v24H0z"/>\n    </mask>\n    <g mask="url(#a)">\n      <path stroke="#6b6b6b" stroke-width=".5" d="M12 2.25q2.03 0 3.8.77a10 10 0 0 1 5.18 5.18q.77 1.77.77 3.8t-.77\n        3.8a10 10 0 0 1-5.18 5.18 9.5 9.5 0 0 1-3.8.77 9.9 9.9 0 0 1-8.98-5.95 9.5 9.5 0 0 1-.77-3.8q0-2.03.77-3.8A10\n        10 0 0 1 8.2 3.02a9.5 9.5 0 0 1 3.8-.77Z"/>\n    </g>\n  </svg>\n'};e.Ay={pupilPlaceholder:'\n    <svg viewBox="0 0 210 210">\n      <circle class="bg" cx="105" cy="105" r="105"/>\n      <g>\n        <circle cx="105" cy="99" r="55"/>\n        <path d="M105,161c34.2,0,62-27.8,62-62s-27.8-62-62-62S43,64.8,43,99S70.8,161,105,161z M105,44c30.3,0,55,24.7,55,55\n          s-24.7,55-55,55s-55-24.7-55-55S74.7,44,105,44z"/>\n        <path d="M37,185c10.1-7,22.1-11.6,36.4-14.2c10,4.4,20.7,6.7,31.7,6.7c11,0,21.7-2.3,31.7-6.7\n          c14.2,2.5,26.2,7.1,36.3,14.1c1.8-1.6,3.6-3.2,5.3-4.9c-11.4-8.2-25-13.5-41.5-16.3l-1.1-0.2l-1,0.5c-9.4,4.3-19.4,6.5-29.8,6.5\n          c-10.4,0-20.4-2.2-29.8-6.5l-1-0.5l-1.1,0.2c-16.5,2.8-30.2,8.1-41.6,16.4C33.4,181.8,35.2,183.4,37,185z"/>\n      </g>\n    </svg>',person:'\n    <svg viewBox="0 0 18 17.8" class="person">\n      <path d="M12.1,12c-0.2-0.4-0.2-1,0.3-1.4c1.3-0.9,2-2.7,2-5.1c0-2.2-1.7-5.6-5.1-5.6S4.3,3.4,4.3,5.
16\n        c0,2.4,0.7,4.2,2,5.1c0.6,0.4,0.2,0.9,0,1.4C6.1,12.3,2,12.9,0,15.2v2.6h9.4H18v-2.6C16,12.9,12.3,12.3,12.1,12z"/>\n    </svg>',pupil:'\n    <svg viewBox="0 0 27 18" class="pupil">\n      <path d="M24.7,13.6c-0.1,0-0.1-0.1-0.1-0.1l0-8.1c0-0.1,0-0.2-0.1-0.2L12.5,0C12.4,0,12.2,0,12.1,0l-12,5.1\n        C0,5.2,0,5.3,0.1,5.4l12,5.1c0.1,0.1,0.4,0.1,0.5,0l9.5-4.1c0.1,0,0.2,0,0.2,0.1v6.9c0,0.1,0,0.1-0.1,0.1c-0.7,0.4-1.2,1.1-1.2,2\n        c0,1.2,0.9,2.3,2.2,2.4c1.5,0.2,2.7-0.9,2.7-2.3C25.9,14.8,25.4,14,24.7,13.6z"/>\n      <path d="M5.1,12l6.5,3.9c0.3,0.2,0.8,0.2,1.1,0l6.5-3.9c0.2-0.1,0.4-0.3,0.4-0.5V8.8L12.6,12\n        c-0.2,0.1-0.6,0.1-0.8,0L4.7,8.8v2.6C4.7,11.7,5,11.9,5.1,12z"/>\n    </svg>',bin:'\n    <svg viewBox="0 -960 960 960">\n      <path d="M312-144q-29.7 0-50.8-21.1Q240-186.3 240-216v-480h-48v-72h192v-48h192v48h192v72h-48v479.6q0 30.4-21.1 51.4T648-144zm336-552H312v480h336zM384-288h72v-336h-72zm120 0h72v-336h-72zM312-696v480z"/>\n    </svg>\n  '}},29846:function(t,e,n){"use strict";n.d(e,{F:function(){return r}});var r={path:"/api",dateFormat:"yyyy-MM-dd",dateFormatMomentJs:"YYYY-MM-DD",timeFormat:"HH:mm"}},31887:function(t,e,n){"use strict";n.d(e,{O:function(){return s}});var r=n(23029),i=n(92901),o=(n(74423),n(27495),n(90906),n(21699),n(42781),n(42762),n(51786)),u=n.n(o),a=n(31774),s=function(){return(0,i.A)(function t(){(0,r.A)(this,t),this.email=void 0,this.emailValidationMessage=void 0,this.emailIsValid=void 0,this.emailHasFocus=void 0,this.emailValidationSuspended=void 0,this.password=void 0,this.passwordValidationMessage=void 0,this.passwordIsValid=void 0,this.passwordHasFocus=void 0,this.passwordValidationSuspended=void 0,this.password2=void 0,this.password2ValidationMessage=void 0,this.password2IsValid=void 0,this.password2HasFocus=void 0,this.password2ValidationSuspended=void 0,this.minPasswordLength=void 0,this.maxPasswordLength=void 0,this.denyCommonPasswords=void 0,this.initEmailField=this.initEmailField.bind(this),this.validateEmail=this.validateEmail.bind(this),this.initPasswordField=this.initPasswordField.bind(this),this.validatePasswords=this.validatePasswords.bind(this),this.minPasswordLength=8,this.maxPasswordLength=24,this.denyCommonPasswords=!0},[{key:"initEmailField",value:function(){var t=this;this.email=u().observable(),this.emailValidationMessage=u().observable(),this.emailIsValid=u().computed(function(){return!t.emailValidationMessage()}),this.emailHasFocus=u().observable(),this.emailValidationSuspended=u().observable(!0);var e=!1;this.emailHasFocus.subscribe(function(n){n&&(e=!0),e&&!n&&t.email()&&t.emailValidationSuspended(!1)}),this.email.subscribe(function(e){t.validateEmail(e)}),this.validateEmail(this.email())}},{key:"validateEmail",value:function(t){null!=t&&t.length?t.length>255?this.emailValidationMessage("Too long"):/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(t.trim())?this.emailValidationMessage(void 0):this.emailValidationMessage("Must be a valid email address"):this.emailValidationMessage("Email required")}},{key:"initPasswordField",value:function(t){var e=this;this.password=u().observable(),this.passwordValidationMessage=u().observable(),this.passwordIsValid=u().computed(function(){return!e.passwordValidationMessage()}),this.passwordHasFocus=u().observable(),this.passwordValidationSuspended=u().observable(!0);var n=!1;if(this.passwordHasFocus.subscribe(function(t){t&&(n=!0),n&&!t&&e.passwordValidationSuspended(!1)}),this.password.subscribe(function(){e.validatePasswords()}),null!=t&&t.repeat){this.password2=u().observable(),this.password2ValidationMessage=u().observable(),this.password2IsValid=u().computed(function(){return!e.password2ValidationMessage()}),this.password2HasFocus=u().observable(),this.password2ValidationSuspended=u().observable(!0);var r=!1;this.password2HasFocus.subscribe(function(t){t&&(r=!0),r&&!t&&e.password2ValidationSuspended(!1)}),this.password2.subscribe(function(){e.validatePasswords()})}this.validatePasswords()}},{key:"validatePasswords",value:function(){var t=this.password();(null!=t&&t.length?t.length<this.minPasswordLength?this.passwordValidationMessage("Too short"):t.length>this.maxPasswordLength?this.passwordValidationMessage("Too long"):this.denyCommonPasswords&&a.K.includes(t.trim())?this.passwordValidationMessage("Too easy to guess!"):this.passwordValidationMessage(void 0):this.passwordValidationMessage("Password required"),this.password2)&&(this.password2()!==t?this.password2ValidationMessage("Must be the same"):this.password2ValidationMessage(void 0))}}])}()},45650:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var r=n(80296),i=(n(62062),n(18111),n(61701),n(26099),n(4523));function o(t){var e=i.Ay.map([1,3,5],function(e){return parseInt(t.substring(e,e+2),16)}),n=(0,r.A)(e,3);return(199*n[0]+687*n[1]+114*n[2])/1e3}},59039:function(t,e,n){"use strict";var r=n(51786),i=n.n(r),o=n(74692),u=n.n(o),a=function(t,e){return e},s=function(t,e,n){return{init:function(r,o){var s=o(),c=s.change,l=s[t]||a,f=function(){var t=e(u()(r)),i=l(r,u()(window).height());t!==i&&(n(u()(r),i),"function"==typeof c&&c(i))};setTimeout(f,1),setTimeout(f,500),u()(document).on("auto-height-recalculate",f),u()(window).on("resize",f),i().utils.domNodeDisposal.addDisposeCallback(r,function(){u()(document).off("auto-height-recalculate",f),u()(window).off("resize",f)})}}};i().bindingHandlers.autoHeight=s("height",function(t){return t.height()},function(t,e){return t.height(e)});i().bindingHandlers.autoMinHeight=s("minHeight",function(t){return parseInt(t.css("min-height"),10)},function(t,e){return t.css("min-height",e+"px")})},51528:function(t,e,n){"use strict";n.d(e,{En:function(){return o},i:function(){return u},yD:function(){return i}});n(28706),n(18111),n(18237),n(26099),n(27495),n(25440);var r=n(4523);function i(t){var e=r.Ay.pairs(t);return e.length?r.Ay.reduce(e,function(t,e){var n,r=e[0].toLowerCase(),i=encodeURIComponent(null!==(n=e[1])&&void 0!==n?n:"");return"".concat(t,"&").concat(r,"=").concat(i)},"").replace(/^&/,"?"):""}function o(t,e,n,r,i,o){var u,a,s,c,l={max:null!==(u=null==o?void 0:o.maxPollInterval)&&void 0!==u?u:3e4,next:null!==(a=null==o?void 0:o.firstPollInterval)&&void 0!==a?a:2e3,increment:null!==(s=null==o?void 0:o.pollIntervalIncrement)&&void 0!==s?s:1e3,maxDuration:null!==(c=null==o?void 0:o.maxDuration)&&void 0!==c?c:12e5,duration:0},f=null,p=!1,d=function(t){p||(r(t),n(!1))},h=function(t){if(!p){if(l.duration>=l.maxDuration)return null==i?void 0:i(t);var e=l.next;l.duration+=e,l.next<l.max&&(l.next+=l.increment),f=setTimeout(y,e)}},v=function(){},y=function(){null!=e?t(e,v,d,h):t(v,d,h)};return null==n||n(!0),y(),{dispose:function(){p=!0,f&&clearTimeout(f)}}}function u(t,e,n,r,i){var o=0,u=null;function a(){if(u&&o<1){var s=u;u=null,null==i||i(s),o++,t(s,e,function(t){return function(t,e){o--,null==n||n(t,e),a()}(t,s)},function(t){return function(t,e){o--,null==r||r(t,e),a()}(t,s)})}}return function(t){u=t,a()}}},41933:function(t,e,n){"use strict";n.d(e,{Iv:function(){return d},LS:function(){return l},Sn:function(){return v},Zd:function(){return h},Zr:function(){return u},a9:function(){return p},em:function(){return a},hy:function(){return f},iB:function(){return r},nr:function(){return s},pz:function(){return o}});n(28706),n(34782),n(18111),n(7588),n(26099),n(27495),n(90906),n(38781),n(25440),n(23500);function r(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}var i=["zero","one","two","three","four","five","six","seven","eight","nine"];function o(t,e){var n=Math.floor(t);return 0===n&&void 0!==e?e:n>=0&&n<i.length?i[n]:r(n)}function u(t){return(t[0]||"").toUpperCase()+t.slice(1)}function a(t){return c(t,"and")}
1function s(t){return c(t,"or")}function c(t,e){var n="";return t.forEach(function(r,i){var o=i===t.length-1?"":i===t.length-2?" "+e+" ":", ";n=n+r+o}),n}function l(t,e){var n=t+(1===e?"":"s");return arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&(n="".concat(e," ").concat(n)),n}function f(t,e){var n=t+(1===e?"":"s"),r=o(e);return"".concat(r," ").concat(n)}function p(t){return(100*t).toFixed(1).toString()+"%"}function d(t){var e=Math.floor(t);return 1===e?"once":2===e?"twice":"".concat(o(e)," times")}function h(t,e){return(e?t.replace(/\s?\n+\s*/g,""):t).replace(/\s+/g," ")}function v(t){return t.replace(/\b(\d*[A-Z]+|\w\S*)\b/g,function(t){return/\d+[A-Z]+/.test(t)?t:t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()})}},68604:function(t,e,n){"use strict";n.d(e,{$:function(){return o},y:function(){return u}});n(28706),n(50113),n(23792),n(62062),n(54743),n(11745),n(16573),n(78100),n(77936),n(18111),n(20116),n(61701),n(26099),n(27495),n(71761),n(25440),n(5746),n(21489),n(48140),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(21903),n(91134),n(33206),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(41405),n(37467),n(44732),n(33684),n(79577),n(16632),n(34226),n(9486),n(20456),n(2945),n(55815),n(64979),n(79739);var r=n(4523),i=n(28150);function o(t){var e=(function(){var t;if("undefined"==typeof History||null===(t=History)||void 0===t||!t.getState)return window.location.search;var e=History.getState().url.match(/\?(.*)$/);return e&&e.length?e[0]:void 0}()||"").substring(1).split("&"),n=r.Ay.map(e,function(t){return t.split("=")}),i=r.Ay.find(n,function(e){return decodeURIComponent(e[0])===t});if(i)return decodeURIComponent(i[1].replace(/\+/g,"%20"))}function u(t){for(var e=atob(t.replace(/-/g,"+").replace(/_/g,"/")),n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return(0,i.A)(n)}},7804:function(t,e,n){"use strict";n.d(e,{LE:function(){return o},NK:function(){return s},Wz:function(){return a},e$:function(){return u}});n(60739),n(33110);var r=n(51786),i=n.n(r);function o(t,e,n){var r=t(),o=e();if(n()&&o){i().tasks.runEarly();var u=t(),c={start:s(u,a(r,o.start))};if(o.end){var l=a(r,o.end);c.end=s(u,l)}e(c)}}function u(t,e){for(var n="",r=void 0===e?t.length:e,i=0;i<r;i++){var o=t[i];n+="text"in o?o.text:o.data.text}return n}function a(t,e){var n=u(t,e.nodeIndex).length+e.offset,r=u(t).length;return n>r?r:n}function s(t,e){for(var n=0,r=0;r<t.length;r++){var i=t[r],o="text"in i?i.text.length:i.data.text.length;if(e<=(n+=o)){var u="text"in i,a=u&&e===n&&r+1<t.length&&"text"in t[r+1];return!u||a?{nodeIndex:r+1,offset:0}:{nodeIndex:r,offset:e-n+o}}}return{nodeIndex:t.length-1,offset:0}}},1794:function(t,e,n){"use strict";n.d(e,{X:function(){return p},o:function(){return f}});n(28706),n(2008),n(62062),n(44114),n(34782),n(18111),n(22489),n(61701),n(26099);var r=n(74692),i=n.n(r),o=n(51786),u=n.n(o),a=n(66909),s=n(45650),c=n(87542),l=["#5b4303","#8e312b","#932e33","#9d3133","#a63332","#b03631","#b93a30","#c23e2e","#cb422b","#d34728","#dc4c24","#e4511f","#e85e31","#ec6b42","#ef7852","#f28462","#f49071","#f59c81","#f6a791","#f6b3a0","#f6bfb0","#fbbca5","#feb999","#ffb68c","#ffb57e","#ffb470","#fdb461","#f9b450","#f3b53e","#ebb728","#ecbc3a","#edc14a","#eec658","#efca66","#f0cf73","#f1d480","#f2d88d","#f3dd9a","#f4e1a7","#ede3a9","#e6e6ac","#e0e8b0","#d9eab4","#d3ebb9","#ceecbe","#c9eec4","#c5eec9","#c2efcf","#aae3ca","#92d7c7","#7dcac5","#69bdc3","#59afc1","#4ea0bf","#4991bb","#4b82b4","#5072ab","#5775b4","#6077bd","#6979c6","#747bce","#807cd6","#8c7edd","#997ee3","#a77ee8","#b57eed","#c46bcd","#c95aab","#c74e89","#be466a","#af444e","#9d4436","#884421"];function f(t){return(null!=t?t:"").split(" ").filter(function(t){return""!=t}).slice(0,2).map(function(t){return t[0].toUpperCase()}).join("")}function p(t){var e="string"==typeof t?(0,a.hW)(t):t;return l[Math.abs(e)%l.length]}u().components.register("sw-avatar",{viewModel:{createViewModel:function(t,e){var n,r,o=[],a="data"in t?t.data:t,l=(0,c.oI)(a.imgSrc),f=(0,c.oI)(null!==(n=a.altText)&&void 0!==n?n:a.text),p=(0,c.oI)(a.text),d=(0,c.oI)(a.icon),h=(0,c.oI)(a.background),v=u().observable(),y=u().observable(!1),m=u().pureComputed(function(){return v()&&!y()});function b(){y(!0)}var g=u().pureComputed(function(){var t=l(),e=v();if(t&&e)return e.onerror=b,t}),w=i()(e.element),_=u().computed(function(){var t=h();t?(w.css("backgroundColor",t),w.toggleClass("lowContrast",(0,s.b)(t)>160)):w.removeClass("lowContrast")}),C=u().pureComputed(function(){return l()&&m()?"avatar-img":d()?"avatar-svg":p()?"avatar-text":void 0});function k(){var t,e,n=(t=p(),e=1===t.length?38:33,'\n  <svg xmlns="http://www.w3.org/2000/svg" viewBox="-23 -26 46 46">\n    <text text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" font-size="'.concat(e,'px">').concat(t,"</text>\n  </svg>\n"));d(n)}return w.hasClass("member")&&!a.icon&&a.text&&(k(),o.push(p.subscribe(k))),w.addClass(null!==(r=C())&&void 0!==r?r:""),o.push(C.subscribe(function(t){w.removeClass("avatar-img avatar-svg avatar-text").addClass(null!=t?t:"")})),{imgElement:v,srcText:l,imgSrc:g,altText:f,imgVisible:m,iconElement:d,text:p,dispose:function(){o.forEach(function(t){return t.dispose()}),_.dispose()}}}}
1,template:'\n    {{#if srcText }}\n      <img data-bind="css: { hidden: !imgVisible() },\n                      element: imgElement,\n                      attr: { src: imgSrc, alt: altText }">\n    {{/if}}\n    {{#if !imgVisible() && iconElement }}\n        {{{iconElement}}}\n    {{/if}}\n    {{#if !imgVisible() && !iconElement && text }}\n        <span>{{text}}</span>\n    {{/if}}\n    {{#if !imgVisible() && !text() && !iconElement() }}\n        <span>&nbsp;</span>\n    {{/if}}\n    '})},80915:function(t,e,n){"use strict";n(50113),n(18111),n(20116),n(26099);var r=n(51786),i=n.n(r),o=n(74692),u=n.n(o),a=n(87542);n(72244);i().components.register("sw-menu",{viewModel:function(t){var e,n=(0,a.oI)(t.open,!1),r=i().isObservable(t.items)?t.items:i().observableArray(t.items),o=i().observable(),s=i().observable(),c=(0,a.oI)(t.enabled,!0),l=t.usePopupLayer,f=null!==(e=t.assistClass)&&void 0!==e?e:"",p=i().pureComputed(n),d=i().pureComputed(function(){return!r().find(function(t){return t.iconHtml})}),h="click",v=function(){n(!1)},y=function(t){if(27===t.keyCode||"Esc"===t.key)return v(),!1};function m(){u()("html").off(h,v),u()(document).off("keypress",y)}n.subscribe(function(t){t?(u()(document).trigger("sw-menu.open",[n]),u()("html").on(h,v),u()(document).on("keypress",y)):m()}),u()(document).on("sw-menu.open",function(t,e){e!==n&&n(!1)}),s.subscribe(function(t){null!=t&&t.disabled&&i().unwrap(t.disabled)||(null==t||t.select(),n(!1))});var b={open:p,position:t.tooltipPosition?t.tooltipPosition:"below-left",offset:0,tryPerpendicularPositions:!1,className:"swMenuItems",fadeInOut:!1};return{open:n,items:r,textElement:o,selectedItem:s,autoHighlight:!1,enabled:c,hasFocus:p,noIcons:d,assistClass:f,usePopupLayer:l,tooltip:b,toggle:function(){n(!n())},dispose:function(){m()}}},template:'\n    <button data-bind="click: toggle, clickBubble: false,\n                      template: {nodes: $componentTemplateNodes, data: $parent},\n                      css: {open: open}, element: textElement,\n                      hasFocus: hasFocus, enable: enabled"></button>\n    {{#ifnot usePopupLayer}}\n      <div class="assist" data-bind="select: $data, visible: open, class: assistClass, css: {noIcons: noIcons}">\n        <item-icon>{{{$data.iconHtml}}}</item-icon>\n        <item-label data-bind="text: label"></item-label>\n      </div>\n    {{/ifnot}}\n    {{#if usePopupLayer}}\n      <div data-bind="tooltip: tooltip">\n        <div class="assist" data-bind="select: $data, class: assistClass, css: {noIcons: noIcons}">\n          <item-icon>{{{$data.iconHtml}}}</item-icon>\n          <item-label data-bind="text: label"></item-label>\n        </div>\n      </div>\n    {{/if}}\n  ',synchronous:!0})},2143:function(t,e,n){"use strict";n(50113),n(23792),n(18111),n(20116),n(26099),n(38781),n(62953);var r=n(51786),i=n.n(r),o=n(74692),u=n.n(o),a=n(4523),s={},c=null,l=function(t,e){if(s[t]=e,!c)return n=function(){a.Ay.each(a.Ay.values(s),function(t){return t()}),c=requestAnimationFrame(n)},void(c=requestAnimationFrame(n));var n},f=function(t){delete s[t],a.Ay.keys(s).length||(c&&cancelAnimationFrame(c),c=null)};i().components.register("spinner",{viewModel:{createViewModel:function(t,e){var n=e.element.firstChild,r=u()(n).find(".spinPath").get(0);if(!r)return{gradId:"",fill:"",dispose:function(){}};r.currentTheta=0;var i=n.createSVGTransform();r.transform.baseVal.appendItem(i);var o=Math.random().toString();return l(o,function(){r.transform.baseVal.getItem(0).setRotate(r.currentTheta,50,50),r.currentTheta+=9}),{gradId:o,fill:"url(#".concat(o,")"),dispose:function(){f(o)}}}},template:'<svg viewBox="0 0 100 100">\n  <defs>\n    <linearGradient data-bind="attr: {id: gradId}" gradientUnits="userSpaceOnUse" x1="30" y1="100" x2="50" y2="0">\n      <stop offset="0"/>\n      <stop offset="1" style="stop-opacity:0.2"/>\n    </linearGradient>\n  </defs>\n  <path class="spinPath" data-bind="attr: {fill: fill}" d="M50.069,0.078c-27.595,0-49.966,22.371-49.966,49.966c0,27.595,22.371,49.966,49.966,49.966   s49.966-22.371,49.966-49.966C100.035,22.448,77.664,0.078,50.069,0.078z M50.01,85.062c-19.316,0-34.976-15.66-34.976-34.976   c0-19.317,15.659-34.976,34.976-34.976c19.317,0,34.97
17,15.659,34.977,34.976C84.987,69.401,69.327,85.062,50.01,85.062z"/>\n</svg>'})},45725:function(t,e,n){"use strict";n.d(e,{o:function(){return i}});var r=n(63250),i=[{label:"Facebook",icon:r.Ox,href:"https://www.facebook.com/TeamStudybugs",shareArticle:function(t){var e=encodeURIComponent(t);return"https://www.facebook.com/sharer/sharer.php?u=".concat(e)},accountName:"TeamStudybugs"},{label:"LinkedIn",icon:r.cL,href:"https://www.linkedin.com/company/studybugs",shareArticle:function(t){var e=encodeURIComponent(t);return"https://www.linkedin.com/shareArticle?mini=true&url=".concat(e)},accountName:"Studybugs"}]},48927:function(t){var e;e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/namespace/cloudinary-jquery-file-upload.js")}({
1"./src/namespace/cloudinary-jquery-file-upload.js":function(t,e,n){"use strict";n.r(e),n.d(e,"ClientHintsMetaTag",function(){return Fr}),n.d(e,"Cloudinary",function(){return ui}),n.d(e,"CloudinaryJQuery",function(){return mi}),n.d(e,"Condition",function(){return $t}),n.d(e,"Configuration",function(){return ee}),n.d(e,"crc32",function(){return u}),n.d(e,"Expression",function(){return Rt}),n.d(e,"FetchLayer",function(){return Te}),n.d(e,"HtmlTag",function(){return kn}),n.d(e,"ImageTag",function(){return $n}),n.d(e,"Layer",function(){return ue}),n.d(e,"PictureTag",function(){return dr}),n.d(e,"SubtitlesLayer",function(){return Oe}),n.d(e,"TextLayer",function(){return ve}),n.d(e,"Transformation",function(){return yn}),n.d(e,"utf8_encode",function(){return o}),n.d(e,"Util",function(){return i}),n.d(e,"VideoTag",function(){return Ar});var r={};n.r(r),n.d(r,"VERSION",function(){return a}),n.d(r,"CF_SHARED_CDN",function(){return s}),n.d(r,"OLD_AKAMAI_SHARED_CDN",function(){return c}),n.d(r,"AKAMAI_SHARED_CDN",function(){return l}),n.d(r,"SHARED_CDN",function(){return f}),n.d(r,"DEFAULT_TIMEOUT_MS",function(){return p}),n.d(r,"DEFAULT_POSTER_OPTIONS",function(){return d}),n.d(r,"DEFAULT_VIDEO_SOURCE_TYPES",function(){return h}),n.d(r,"SEO_TYPES",function(){return v}),n.d(r,"DEFAULT_IMAGE_PARAMS",function(){return y}),n.d(r,"DEFAULT_VIDEO_PARAMS",function(){return m}),n.d(r,"DEFAULT_VIDEO_SOURCES",function(){return b}),n.d(r,"DEFAULT_EXTERNAL_LIBRARIES",function(){return g}),n.d(r,"PLACEHOLDER_IMAGE_MODES",function(){return w}),n.d(r,"ACCESSIBILITY_MODES",function(){return _}),n.d(r,"URL_KEYS",function(){return C});var i={};n.r(i),n.d(i,"omit",function(){return O}),n.d(i,"allStrings",function(){return E}),n.d(i,"without",function(){return j}),n.d(i,"isNumberLike",function(){return P}),n.d(i,"smartEscape",function(){return x}),n.d(i,"defaults",function(){return D}),n.d(i,"objectProto",function(){return B}),n.d(i,"objToString",function(){return T}),n.d(i,"isObject",function(){return L}),n.d(i,"funcTag",function(){return F}),n.d(i,"isFunction",function(){return M}),n.d(i,"reWords",function(){return I}),n.d(i,"camelCase",function(){return R}),n.d(i,"snakeCase",function(){return V}),n.d(i,"convertKeys",function(){return z}),n.d(i,"withCamelCaseKeys",function(){return H}),n.d(i,"withSnakeCaseKeys",function(){return N}),n.d(i,"base64Encode",function(){return U}),n.d(i,"base64EncodeURL",function(){return Q}),n.d(i,"extractUrlParams",function(){return Z}),n.d(i,"patchFetchFormat",function(){return q}),n.d(i,"optionConsume",function(){return $}),n.d(i,"isEmpty",function(){return Y}),n.d(i,"isIntersectionObserverSupported",function(){return X}),n.d(i,"isNativeLazyLoadSupported",function(){return G}),n.d(i,"detectIntersection",function(){return J}),n.d(i,"isAndroid",function(){return tt}),n.d(i,"isEdge",function(){return et}),n.d(i,"isChrome",function(){return nt}),n.d(i,"isSafari",function(){return rt}),n.d(i,"getSDKAnalyticsSignature",function(){return ft}),n.d(i,"getAnalyticsOptions",function(){return pt}),n.d(i,"getData",function(){return dt}),n.d(i,"setData",function(){return ht}),n.d(i,"getAttribute",function(){return vt}),n.d(i,"setAttribute",function(){return yt}),n.d(i,"removeAttribute",function(){return mt}),n.d(i,"setAttributes",function(){return bt}),n.d(i,"hasClass",function(){return gt}),n.d(i,"addClass",function(){return wt}),n.d(i,"width",function(){return _t}),n.d(i,"isString",function(){return Ct}),n.d(i,"merge",function(){return kt}),n.d(i,"compact",function(){return Ot}),n.d(i,"cloneDeep",function(){return St}),n.d(i,"contains",function(){return At}),n.d(i,"difference",function(){return Et}),n.d(i,"functions",function(){return jt}),n.d(i,"identity",function(){return Pt}),n.d(i,"isArray",function(){return xt}),n.d(i,"assign",function(){return Dt}),n.d(i,"isPlainObject",function(){return Bt}),n.d(i,"trim",function(){return Tt});var o=function(t){var e,n,r,i,o,u,a,s;if(null==t)return"";for(s="",o=void 0,r=void 0,o=r=0,a=(u=t+"").length,i=0;i<a;)n=null,(e=u.charCodeAt(i))<128?r++:n=e>127&&e<2048?String.fromCharCode(e>>6|192,63&e|128):String.fromCharCode(e>>12|224,e>>6&63|128,63&e|128),null!==n&&(r>o&&(s+=u.slice(o,r)),s+=n,o=r=i+1),i++;return r>o&&(s+=u.slice(o,a)),s},u=function(t){var e,n,r,i;for(e=0,i=0,e^=-1,n=0,r=(t=o(t)).length;n<r;)i=255&(e^t.charCodeAt(n)),e=e>>>8^"0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6
1B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*i,8),n++;return(e^=-1)<0&&(e+=4294967296),e},a="2.5.0",s="d3jpl91pxevbkh.cloudfront.net",c="cloudinary-a.akamaihd.net",l="res.cloudinary.com",f=l,p=1e4,d={format:"jpg",resource_type:"video"},h=["webm","mp4","ogv"],v={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},y={resource_type:"image",transformation:[],type:"upload"},m={fallback_content:"",resource_type:"video",source_transformation:{},source_types:h,transformation:[],type:"upload"},b=[{type:"mp4",codecs:"hev1",transformations:{video_codec:"h265"}},{type:"webm",codecs:"vp9",transformations:{video_codec:"vp9"}},{type:"mp4",transformations:{video_codec:"auto"}},{type:"webm",transformations:{video_codec:"auto"}}],g={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},w={blur:[{effect:"blur:2000",quality:1,fetch_format:"auto"}],pixelate:[{effect:"pixelate",quality:1,fetch_format:"auto"}],"predominant-color-pixel":[{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:1,height:1,gravity:"north_east"},{fetch_format:"auto",quality:"auto"}],"predominant-color":[{variables:[["$currWidth","w"],["$currHeight","h"]]},{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:10,height:10,gravity:"north_east"},{width:"$currWidth",height:"$currHeight",crop:"fill"},{fetch_format:"auto",quality:"auto"}],vectorize:[{effect:"vectorize:3:0.1",fetch_format:"svg"}]},_={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},C=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function k(t){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}function O(t,e){t=t||{};var n=Object.keys(t).filter(function(t){return!At(e,t)}),r={};return n.forEach(function(e){return r[e]=t[e]}),r}var S,A,E=function(t){return t.length&&t.every(Ct)},j=function(t,e){return t.filter(function(t){return t!==e})},P=function(t){return null!=t&&!isNaN(parseFloat(t))},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return t.replace(e,function(t){return t.split("").map(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}).join("")})},D=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce(function(t,e){var n,r;for(n in e)r=e[n],void 0===t[n]&&(t[n]=r);return t},t)}
1,B=Object.prototype,T=B.toString,L=function(t){var e;return e=k(t),!!t&&("object"===e||"function"===e)},F="[object Function]",M=function(t){return L(t)&&T.call(t)===F},I=(A="[A-Z]",S="[a-z]+",RegExp(A+"+(?="+A+S+")|"+A+"?"+S+"|"+A+"+|[0-9]+","g")),R=function(t){var e=t.match(I);return(e=e.map(function(t){return t.charAt(0).toLocaleUpperCase()+t.slice(1).toLocaleLowerCase()}))[0]=e[0].toLocaleLowerCase(),e.join("")},V=function(t){var e=t.match(I);return(e=e.map(function(t){return t.toLocaleLowerCase()})).join("_")},z=function(t,e){var n,r;for(var i in n={},t)r=t[i],e&&(i=e(i)),Y(i)||(n[i]=r);return n},H=function(t){return z(t,R)},N=function(t){return z(t,V)},U="undefined"!=typeof btoa&&M(btoa)?btoa:"undefined"!=typeof Buffer&&M(Buffer)?function(t){return t instanceof Buffer||(t=new Buffer.from(String(t),"binary")),t.toString("base64")}:function(t){throw new Error("No base64 encoding function found")},Q=function(t){try{t=decodeURI(t)}finally{t=encodeURI(t)}return U(t)};function Z(t){return C.reduce(function(e,n){return null!=t[n]&&(e[n]=t[n]),e},{})}function q(t){null==t&&(t={}),"fetch"===t.type&&null==t.fetch_format&&(t.fetch_format=$(t,"format"))}function $(t,e,n){var r=t[e];return delete t[e],null!=r?r:n}function Y(t){if(null==t)return!0;if("number"==typeof t.length)return 0===t.length;if("number"==typeof t.size)return 0===t.size;if("object"==k(t)){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}return!0}function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function X(){return"object"===("undefined"==typeof window?"undefined":W(window))&&window.IntersectionObserver}function G(){return"object"===("undefined"==typeof HTMLImageElement?"undefined":W(HTMLImageElement))&&HTMLImageElement.prototype.loading}function J(t,e){try{if(G()||!X())return void e();var n=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&(e(),n.unobserve(t.target))})},{threshold:[0,.01]});n.observe(t)}catch(t){e()}}function K(){return navigator&&navigator.userAgent||""}function tt(){var t=K();return/Android/i.test(t)}function et(){var t=K();return/Edg/i.test(t)}function nt(){var t=K();return!et()&&(/Chrome/i.test(t)||/CriOS/i.test(t))}function rt(){var t=K();return/Safari/i.test(t)&&!nt()&&!tt()&&!et()}function it(t,e,n){return e|=0,n=String(void 0!==n?n:" "),t.length>e?String(t):((e-=t.length)>n.length&&(n+=function(t,e){for(var n="";e>0;)n+=t,e--;return n}(n,e/n.length)),n.slice(0,e)+String(t))}function ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ut,at=0,st={};(ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",function(t){if(Array.isArray(t))return ot(t)}(ut)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(ut)||function(t,e){if(t){if("string"==typeof t)return ot(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(t,e):void 0}}(ut)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach(function(t){var e=at.toString(2);e=it(e,6,"0"),st[e]=t,at++});var ct=st;function lt(t){var e="",n=6*t.split(".").length,r=function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().map(function(t){return it(t,2,"0")}).join(".")}(t),i=parseInt(r.split(".").join("")).toString(2);if((i=it(i,n,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return i.match(/.{1,6}/g).forEach(function(t){e+=ct[t]}),e}function ft(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var r=(t=n.techVersion,e=t.split("."),"".concat(e[0],".").concat(e[1])),i=lt(n.sdkSemver),o=lt(r),u=n.feature,a=n.sdkCode;
1return"".concat("A").concat(a).concat(i).concat(o).concat(u)}catch(t){return"E"}}function pt(t){var e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,feature:"0"};return t.urlAnalytics?(t.accessibility&&(e.feature="D"),"lazy"===t.loading&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e):{}}var dt=function(t,e){return jQuery(t).data(e)},ht=function(t,e,n){return jQuery(t).data(e,n)},vt=function(t,e){return jQuery(t).attr(e)},yt=function(t,e,n){return jQuery(t).attr(e,n)},mt=function(t,e){return jQuery(t).removeAttr(e)},bt=function(t,e){return jQuery(t).attr(e)},gt=function(t,e){return jQuery(t).hasClass(e)},wt=function(t,e){return jQuery(t).addClass(e)},_t=function(t){return jQuery(t).width()},Ct=function(t){return"string"==typeof t||"[object String]"===(null!=t?t.toString():void 0)},kt=function(){var t,e;return t=function(){var t,n,r;for(r=[],t=0,n=arguments.length;t<n;t++)e=arguments[t],r.push(e);return r}.apply(this,arguments),t.unshift(!0),jQuery.extend.apply(this,t)},Ot=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)(e=t[n])&&i.push(e);return i},St=function(){var t;return(t=jQuery.makeArray(arguments)).unshift({}),t.unshift(!0),jQuery.extend.apply(this,t)},At=function(t,e){var n,r;for(n=0,r=t.length;n<r;n++)if(t[n]===e)return!0;return!1},Et=function(t,e){var n,r,i,o;for(o=[],r=0,i=t.length;r<i;r++)n=t[r],At(e,n)||o.push(n);return o},jt=function(t){var e,n;for(e in n=[],t)jQuery.isFunction(t[e])&&n.push(e);return n},Pt=function(t){return t},xt=Array.isArray,Dt=jQuery.extend,Bt=jQuery.isPlainObject,Tt=jQuery.trim;function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function Ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Mt(r.key),r)}}function Mt(t){var e=function(t,e){if("object"!=Lt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Lt(e)?e:e+""}var It=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.expressions=[],null!=e&&this.expressions.push(t.normalize(e))}return function(t,e,n){return e&&Ft(t.prototype,e),n&&Ft(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,[{key:"serialize",value:function(){return t.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(t){return this.parent=t,this}},{key:"predicate",value:function(e,n,r){return null!=t.OPERATORS[n]&&(n=t.OPERATORS[n]),this.expressions.push("".concat(e,"_").concat(n,"_").concat(r)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(t,e){return this.predicate("h",t,e)}},{key:"width",value:function(t,e){return this.predicate("w",t,e)}},{key:"aspectRatio",value:function(t,e){return this.predicate("ar",t,e)}},{key:"pageCount",value:function(t,e){return this.predicate("pc",t,e)}},{key:"faceCount",value:function(t,e){return this.predicate("fc",t,e)}},{key:"value",value:function(t){return this.expressions.push(t),this}}],[{key:"new",value:function(t){return new this(t)}},{key:"normalize",value:function(e){if(null==e)return e;e=String(e);var n=new RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");e=e.replace(n,function(e){return t.OPERATORS[e]});var r="("+Object.keys(t.PREDEFINED_VARS).map(function(t){return":".concat(t,"|").concat(t)}).join("|")+")",i=new RegExp("".concat("(\\$_*[^_ ]+)","|").concat(r),"g");return(e=e.replace(i,function(e){return t.PREDEFINED_VARS[e]||e})).replace(/[ _]+/g,"_")}},{key:"variable",value:function(t,e){return new this(t).value(e)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}])}();It.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},It.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},It.BOUNDRY="[ _]+";var Rt=It;function Vt(t){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vt(t)}function zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ht(r.key),r)}}function Ht(t){var e=function(t,e){if("object"!=Vt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==Vt(e)?e:e+""}function Nt(t,e,n){return e=Qt(e),function(t,e){if(e&&("object"==Vt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ut()?Reflect.construct(e,n||[],Qt(t).constructor):e.apply(t,n))}function Ut(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ut=function(){return!!t})()}function Qt(t){return Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qt(t)}function Zt(t,e){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zt(t,e)}var qt=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Nt(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zt(t,e)}(e,t),function(t,e,n){return e&&zt(t.prototype,e),n&&zt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"height",value:function(t,e){return this.predicate("h",t,e)}},{key:"width",value:function(t,e){return this.predicate("w",t,e)}},{key:"aspectRatio",value:function(t,e){return this.predicate("ar",t,e)}},{key:"pageCount",value:function(t,e){return this.predicate("pc",t,e)}},{key:"faceCount",value:function(t,e){return this.predicate("fc",t,e)}},{key:"duration",value:function(t,e){return this.predicate("du",t,e)}},{key:"initialDuration",value:function(t,e){return this.predicate("idu",t,e)}}])}(Rt),$t=qt;function Yt(t){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt(t)}function Wt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,u,a=[],s=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){c=!0,i=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Xt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Jt(r.key),r)}}function Jt(t){var e=function(t,e){if("object"!=Yt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Yt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Yt(e)?e:e+""}var Kt=function(){return function(t,e,n){return e&&Gt(t.prototype,e),n&&Gt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.configuration=null==e?{}:St(e),D(this.configuration,te)},[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(t,e){return this.configuration[t]=e,this}},{key:"get",value:function(t){return this.configuration[t]}},{key:"merge",value:function(t){return Dt(this.configuration,St(t)),this}},{key:"fromDocument",value:function(){var t,e,n,r;if(r="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(e=0,n=r.length;e<n;e++)t=r[e],this.configuration[t.getAttribute("name").replace("cloudinary_","")]=t.getAttribute("content");return this}},{key:"fromEnvironment",value:function(){var t,e,n,r=this;return"undefined"!=typeof process&&null!==process&&process.env&&process.env.CLOUDINARY_URL&&(t=process.env.CLOUDINARY_URL,(n=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(t))&&(null!=n[3]&&(this.configuration.cloud_
1name=n[3]),null!=n[1]&&(this.configuration.api_key=n[1]),null!=n[2]&&(this.configuration.api_secret=n[2]),null!=n[4]&&(this.configuration.private_cdn=null!=n[4]),null!=n[4]&&(this.configuration.secure_distribution=n[4]),null!=(e=n[5])&&e.split("&").forEach(function(t){var e=Wt(t.split("="),2),n=e[0],i=e[1];null==i&&(i=!0),r.configuration[n]=i}))),this}},{key:"config",value:function(t,e){switch(!1){case void 0===e:return this.set(t,e),this.configuration;case!Ct(t):return this.get(t);case!Bt(t):return this.merge(t),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return St(this.configuration)}}])}(),te={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:"https:"===("undefined"!=typeof window&&null!==window&&window.location?window.location.protocol:void 0)};Kt.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"];var ee=Kt;function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}function re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ie(r.key),r)}}function ie(t){var e=function(t,e){if("object"!=ne(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ne(e)?e:e+""}var oe=function(){return function(t,e,n){return e&&re(t.prototype,e),n&&re(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={},null!=e&&["resourceType","type","publicId","format"].forEach(function(t){var r;return n.options[t]=null!=(r=e[t])?r:e[V(t)]})},[{key:"resourceType",value:function(t){return this.options.resourceType=t,this}},{key:"type",value:function(t){return this.options.type=t,this}},{key:"publicId",value:function(t){return this.options.publicId=t,this}},{key:"getPublicId",value:function(){var t;return null!=(t=this.options.publicId)?t.replace(/\//g,":"):void 0}},{key:"getFullPublicId",value:function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()}},{key:"format",value:function(t){return this.options.format=t,this}},{key:"toString",value:function(){var t;if(t=[],null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&t.push(this.options.resourceType),"upload"!==this.options.type&&t.push(this.options.type),t.push(this.getFullPublicId()),Ot(t).join(":")}},{key:"clone",value:function(){return new this.constructor(this.options)}}])}(),ue=oe;function ae(t){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ae(t)}function se(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ce(r.key),r)}}function ce(t){var e=function(t,e){if("object"!=ae(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ae(e)?e:e+""}function le(t,e,n){return e=pe(e),function(t,e){if(e&&("object"==ae(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,fe()?Reflect.construct(e,n||[],pe(t).constructor):e.apply(t,n))}function fe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(fe=function(){return!!t})()}function pe(t){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pe(t)}function de(t,e){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},de(t,e)}var he=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=le(this,e,[t]),null!=t&&["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text","textStyle"].forEach(function(e){var r;return n.options[e]=null!=(r=t[e])?r:t[V(e)]}),n.options.resourceType="text",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&de(t,e)}(e,t),function(t,e,n){return e&&se(t.prototype,e),n&&se(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"resourceType",value:function(t){throw"Cannot modify resourceType for text layers"}},{key:"type",value:function(t){throw"Cannot modify type for text layers"}},{key:"format",value:function(t){throw"Cannot modify format for text layers"}},{key:"fontFamily",value:function(t){return this.options.fontFamily=t,this}},{key:"fontSize",value:function(t){return this.options.fontSize=t,this}},{key:"fontWeight",value:function(t){return this.options.fontWeight=t,this}},{key:"fontStyle",value:function(t){return this.options.fontStyle=t,this}},{key:"textDecoration",value:function(t){return this.options.textDecoration=t,this}},{key:"textAlign",value:function(t){return this.options.textAlign=t,this}},{key:"stroke",value:function(t){return this.options.stroke=t,this}},{key:"letterSpacing",value:function(t){return this.options.letterSpacing=t,this}},{key:"lineSpacing",value:function(t){return this.options.lineSpacing=t,this}},{key:"fontHinting",value:function(t){return this.options.fontHinting=t,this}},{key:"fontAntialiasing",value:function(t){return this.options.fontAntialiasing=t,this}},{key:"text",value:function(t){return this.options.text=t,this}},{key:"textStyle",value:function(t){return this.options.textStyle=t,this}},{key:"toString",value:function(){var t,e,n,r,i,o,u,a,s,c;if(a=this.textStyleIdentifier(),null!=this.options.publicId&&(r=this.getFullPublicId()),null!=this.options.text){if(e=!Y(r),n=!Y(a),e&&n||!e&&!n)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(i=/\$\([a-zA-Z]\w*\)/g,u=0,c=x(this.options.text,/[,\/]/g),s="";o=i.exec(c);)s+=x(c.slice(u,o.index)),s+=o[0],u=o.index+o[0].length;s+=x(c.slice(u))}return t=[this.options.resourceType,a,r,s],Ot(t).join(":")}},{key:"textStyleIdentifier",value:function(){if(!Y(this.options.textStyle))return this.options.textStyle;var t;if(t=[],"normal"!==this.options.fontWeight&&t.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&t.push(this.options.fontStyle),"none"!==this.options.textDecoration&&t.push(this.options.textDecoration),t.push(this.options.textAlign),"none"!==this.options.stroke&&t.push(this.options.stroke),Y(this.options.letterSpacing)&&!P(this.options.letterSpacing)||t.push("letter_spacing_"+this.options.letterSpacing),Y(this.options.lineSpacing)&&!P(this.options.lineSpacing)||t.push("line_spacing_"+this.options.lineSpacing),Y(this.options.fontAntialiasing)||t.push("antialias_"+this.options.fontAntialiasing),Y(this.options.fontHinting)||t.push("hinting_"+this.options.fontHinting),!Y(Ot(t))){if
1(Y(this.options.fontFamily))throw"Must supply fontFamily. ".concat(t);if(Y(this.options.fontSize)&&!P(this.options.fontSize))throw"Must supply fontSize."}return t.unshift(this.options.fontFamily,this.options.fontSize),t=Ot(t).join("_")}}])}(ue),ve=he;function ye(t){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ye(t)}function me(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,be(r.key),r)}}function be(t){var e=function(t,e){if("object"!=ye(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ye(e)?e:e+""}function ge(t,e,n){return e=_e(e),function(t,e){if(e&&("object"==ye(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,we()?Reflect.construct(e,n||[],_e(t).constructor):e.apply(t,n))}function we(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(we=function(){return!!t})()}function _e(t){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_e(t)}function Ce(t,e){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ce(t,e)}var ke=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=ge(this,e,[t])).options.resourceType="subtitles",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ce(t,e)}(e,t),function(t,e,n){return e&&me(t.prototype,e),n&&me(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e)}(ve),Oe=ke;function Se(t){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Se(t)}function Ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ee(r.key),r)}}function Ee(t){var e=function(t,e){if("object"!=Se(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Se(e)?e:e+""}function je(t,e,n){return e=xe(e),function(t,e){if(e&&("object"==Se(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Pe()?Reflect.construct(e,n||[],xe(t).constructor):e.apply(t,n))}function Pe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Pe=function(){return!!t})()}function xe(t){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xe(t)}function De(t,e){return De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},De(t,e)}var Be=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=je(this,e,[t]),Ct(t)?n.options.url=t:(null!=t?t.url:void 0)&&(n.options.url=t.url),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&De(t,e)}(e,t),function(t,e,n){return e&&Ae(t.prototype,e),n&&Ae(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"url",value:function(t){return this.options.url=t,this}},{key:"toString",value:function(){return"fetch:".concat(Q(this.options.url))}}])}(ue),Te=Be;function Le(t,e,n){return e=Re(e),function(t,e){if(e&&("object"==He(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Fe()?Reflect.construct(e,n||[],Re(t).constructor):e.apply(t,n))}function Fe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Fe=function(){return!!t})()}function Me(t,e,n,r){var i=Ie(Re(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}function Ie(){return Ie="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Re(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Ie.apply(null,arguments)}function Re(t){return Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Re(t)}function Ve(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ze(t,e)}function ze(t,e){return ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ze(t,e)}function He(t){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(t)}function Ne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ue(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ze(r.key),r)}}function Qe(t,e,n){return e&&Ue(t.prototype,e),n&&Ue(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ze(t){var e=function(t,e){if("object"!=He(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=He(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==He(e)?e:e+""}var qe=function(){return Qe(function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pt;Ne(this,t),this.name=e,this.shortName=n,this.process=r},[{key:"set",value:function(t){return this.origValue=t,this}},{key:"serialize",value:function(){var t,e;return t=this.value(),e=xt(t)||Bt(t)||Ct(t)?!Y(t):null!=t,null!=this.shortName&&e?"".concat(this.shortName,"_").concat(t):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(t){return null!=t?t.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(t){return null==t?[]:xt(t)?t:[t]}},{key:"process_video_params",value:function(t){var e;switch(t.constructor){case Object:return e="","codec"in t&&(e=t.codec,"profile"in t&&(e+=":"+t.profile,"level"in t&&(e+=":"+t.level,"b_frames"in t&&!1===t.b_frames&&(e+=":bframes_no")))),e;case String:return t;default:return null}}}])}(),$e=function(t){function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return Ne(this,e),(r=Le(this,e,[t,n,o])).sep=i,r}return Ve(e,t),Qe(e,[{key:"serialize",value:function(){if(null!=this.shortName){var t=this.value();if(Y(t))return"";if(Ct(t))return"".concat(this.shortName,"_").concat(t);var e=t.map(function(t){return M(t.serialize)?t.serialize():t}).join(this.sep);return"".concat(this.shortName,"_").concat(e)}return""}},{key:"value",value:function(){var t=this;return xt(this.origValue)?this.origValue.map(function(e){return t.process(e)}):this.process(this.origValue)}},{key:"set",value:function(t){return null==t||xt(t)?Me(e,"set",this,3)([t]):Me(e,"set",this,3)([[t]])}}])}(qe),Ye=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return Ne(this,e),(n=Le(this,e,[t,r,o])).sep=i,n}return Ve(e,t),Qe(e,[{key:"serialize",value:function(){var t=this,e="",n=this.value();if(Y(n))return e;if(E(n)){var r=n.join(this.sep);Y(r)||(e="".concat(this.shortName,"_").concat(r))}else e=n.map(function(e){return Ct(e)&&!Y(e)?"".concat(t.shortName,"_").concat(e):M(e.serialize)?e.serialize():Bt(e)&&!Y(e)?new yn(e).serialize():void 0}).filter(function(t){return t});return e}},{key:"set",value:function(t){return this.origValue=t,xt(this.origValue)?Me(e,"set",this,3)([this.origValue]):Me(e,"set",this,3)([[this.origValue]])}}])}(qe),We=function(t){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.norm_range_value;return Ne(this,e),Le(this,e,[t,n,r])}return Ve(e,t),Qe(e,null,[{key:"norm_range_value",value:function(t){var e=String(t).match(new RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(e){var n=null!=e[5]?"p":"";t=(e[1]||e[4])+n}return Rt.normalize(t)}}])}(qe),Xe=function(t){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pt;return Ne(this,e),Le(this,e,[t,n,r])}return Ve(e,t),Qe(e,[{key:"serialize",value:function(){return this.value()}}])}(qe),Ge=function(t){function e(){return Ne(this,e),Le(this,e,arguments)}return Ve(e,t),Qe(e,[{key:"value",value:function(){if(null==this.origValue)return"";var t;if(this.origValue instanceof ue)t=this.origValue;else if(Bt(this.origValue)){var e=H(this.origValue);t="text"===e.resourceType||null!=e.text?new ve(e):"subtitles"===e.resourceType?new Oe(e):"fetch"===e.resourceType||null!=e.url?new Te(e):new ue(e)}else t=Ct(this.origValue)?/^fetch:.+/.test(this.origValue)?new Te(this.origValue.substr(6)):this.origValue:"";return t.toString()}}],[{key:"textStyle",value:function(t){return new ve(t).textStyleIdentifier()}}])}(qe);function Je(t,e,n){return e=tn(e),function(t,e){if(e&&("object"==on(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ke()?Reflect.construct(e,n||[],tn(t).constructor):e.apply(t,n))}function Ke(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ke=function(){return!!t})()}
1function tn(t){return tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tn(t)}function en(t,e){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},en(t,e)}function nn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,u,a=[],s=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){c=!0,i=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return rn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function on(t){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(t)}function un(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function an(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,cn(r.key),r)}}function sn(t,e,n){return e&&an(t.prototype,e),n&&an(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function cn(t){var e=function(t,e){if("object"!=on(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==on(e)?e:e+""}function ln(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach(function(e){Object.keys(e).forEach(function(n){null!=e[n]&&(t[n]=e[n])})}),t}var fn=function(){function t(e){var n,r;un(this,t),n=void 0,r={},this.toOptions=function(t){var e={};if(null==t&&(t=!0),Object.keys(r).forEach(function(t){return e[t]=r[t].origValue}),ln(e,this.otherOptions),t&&!Y(this.chained)){var n=this.chained.map(function(t){return t.toOptions()});n.push(e),ln(e={},this.otherOptions),e.transformation=n}return e},this.setParent=function(t){return n=t,null!=t&&this.fromOptions("function"==typeof t.toOptions?t.toOptions():void 0),this},this.getParent=function(){return n},this.param=function(t,e,n,i,o){return null==o&&(o=M(i)?i:Pt),r[e]=new qe(e,n,o).set(t),this},this.rawParam=function(t,e,n,i,o){return o=dn(arguments),r[e]=new Xe(e,n,o).set(t),this},this.rangeParam=function(t,e,n,i,o){return o=dn(arguments),r[e]=new We(e,n,o).set(t),this},this.arrayParam=function(t,e,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":";return i=dn(arguments),r[e]=new $e(e,n,o,i).set(t),this},this.transformationParam=function(t,e,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";return i=dn(arguments),r[e]=new Ye(e,n,o,i).set(t),this},this.layerParam=function(t,e,n){return r[e]=new Ge(e,n).set(t),this},this.getValue=function(t){var e=r[t]&&r[t].value();return null!=e?e:this.otherOptions[t]},this.get=function(t){return r[t]},this.remove=function(t){var e;switch(!1){case null==r[t]:return e=r[t],delete r[t],e.origValue;case null==this.otherOptions[t]:return e=this.otherOptions[t],delete this.otherOptions[t],e;default:return null}},this.keys=function(){var t;return function(){var e;for(t in e=[],r)null!=t&&e.push(t.match(pn)?t:V(t));return e}().sort()},this.toPlainObject=function(){var t,e,n;for(e in t={},r)t[e]=r[e].value(),Bt(t[e])&&(t[e]=St(t[e]));return Y(this.chained)||((n=this.chained.map(function(t){return t.toPlainObject()})).push(t),t={transformation:n}),t},this.chain=function(){var t;return 0!==Object.getOwnPropertyNames(r).length&&(t=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(t)),this},this.resetTransformations=function(){return r={},this},this.otherOptions={},this.chained=[],this.fromOptions(e)}return sn(t,[{key:"fromOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e instanceof t)this.fromTransformation(e);else for(var n in(Ct(e)||xt(e))&&(e={transformation:e}),(e=St(e,function(e){if(e instanceof t||e instanceof Layer)return new e.clone})).if&&(this.set("if",e.if),delete e.if),e){var r=e[n];null!=r&&(n.match(pn)?"$attr"!==n&&this.set("variable",n,r):this.set(n,r))}return this}},{key:"fromTransformation",value:function(e){var n=this;
1return e instanceof t&&e.keys().forEach(function(t){return n.set(t,e.get(t).origValue)}),this}},{key:"set",value:function(t){var e;e=R(t);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return At(vn.methods,e)?this[e].apply(this,r):this.otherOptions[t]=r[0],this}},{key:"hasLayer",value:function(){return this.getValue("overlay")||this.getValue("underlay")}},{key:"serialize",value:function(){var t,e,n,r,i,o,u,a,s,c,l,f,p,d,h,v,y;for(c=this.chained.map(function(t){return t.serialize()}),r=this.keys(),d=null!=(i=this.get("transformation"))?i.serialize():void 0,t=null!=(o=this.get("if"))?o.serialize():void 0,v=function(t){var e,n,r,i,o;if(xt(t)){for(i=[],e=0,n=t.length;e<n;e++){var u=nn(t[e],2);r=u[0],o=u[1],i.push("".concat(r,"_").concat(Rt.normalize(o)))}return i}return t}(null!=(u=this.get("variables"))?u.value():void 0),r=Et(r,["transformation","if","variables"]),y=[],f=[],e=0,n=r.length;e<n;e++)(l=r[e]).match(pn)?y.push(l+"_"+Rt.normalize(null!=(a=this.get(l))?a.value():void 0)):f.push(null!=(s=this.get(l))?s.serialize():void 0);switch(!1){case!Ct(d):f.push(d);break;case!xt(d):c=c.concat(d)}return f=function(){var t,e,n;for(n=[],t=0,e=f.length;t<e;t++)h=f[t],(xt(h)&&!Y(h)||!xt(h)&&h)&&n.push(h);return n}(),f=y.sort().concat(v).concat(f.sort()),"if_end"===t?f.push(t):Y(t)||f.unshift(t),Y(p=Ot(f).join(this.param_separator))||c.push(p),Ot(c).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var t,e,n,r,i,o,u,a,s=this;return n={},Object.keys(this.otherOptions).forEach(function(e){o=s.otherOptions[e],a=V(e),At(vn.PARAM_NAMES,a)||At(C,a)||(t=/^html_/.test(e)?e.slice(5):e,n[t]=o)}),this.keys().forEach(function(t){/^html_/.test(t)&&(n[R(t.slice(5))]=s.getValue(t))}),this.hasLayer()||this.getValue("angle")||At(["fit","limit","lfill"],this.getValue("crop"))||(u=null!=(r=this.get("width"))?r.origValue:void 0,e=null!=(i=this.get("height"))?i.origValue:void 0,parseFloat(u)>=1&&null==n.width&&(n.width=u),parseFloat(e)>=1&&null==n.height&&(n.height=e)),n}},{key:"toHtml",value:function(){var t;return null!=(t=this.getParent())&&"function"==typeof t.toHtml?t.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new this.constructor(this.toOptions(!0))}}],[{key:"listNames",value:function(){return vn.methods}},{key:"isValidParamName",value:function(t){return vn.methods.indexOf(R(t))>=0}}])}(),pn=/^\$[a-zA-Z0-9]+$/;function dn(t){var e;return e=null!=t?t[t.length-1]:void 0,M(e)?e:void 0}function hn(t){var e=t.function_type,n=t.source;return"remote"===e?[e,btoa(n)].join(":"):"wasm"===e?[e,n].join(":"):void 0}fn.prototype.trans_separator="/",fn.prototype.param_separator=",";var vn=function(t){function e(t){return un(this,e),Je(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&en(t,e)}(e,t),sn(e,[{key:"angle",value:function(t){return this.arrayParam(t,"angle","a",".",Rt.normalize)}},{key:"audioCodec",value:function(t){return this.param(t,"audio_codec","ac")}},{key:"audioFrequency",value:function(t){return this.param(t,"audio_frequency","af")}},{key:"aspectRatio",value:function(t){return this.param(t,"aspect_ratio","ar",Rt.normalize)}},{key:"background",value:function(t){return this.param(t,"background","b",qe.norm_color)}},{key:"bitRate",value:function(t){return this.param(t,"bit_rate","br")}},{key:"border",value:function(t){return this.param(t,"border","bo",function(t){return Bt(t)?(t=Dt({},{color:"black",width:2},t),"".concat(t.width,"px_solid_").concat(qe.norm_color(t.color))):t})}},{key:"color",value:function(t){return this.param(t,"color","co",qe.norm_color)}},{key:"colorSpace",value:function(t){return this.param(t,"color_space","cs")}},{key:"crop",value:function(t){return this.param(t,"crop","c")}},{key:"customFunction",value:function(t){return this.param(t,"custom_function","fn",function(){return hn(t)})}},{key:"customPreFunction",value:function(t){if(!this.get("custom_function"))return this.rawParam(t,"custom_function","",function(){return(t=hn(t))?"fn_pre:".concat(t):t})}},{key:"defaultImage",value:function(t){return this.param(t,"default_image","d")}},{key:"delay",value:function(t){return this.param(t,"delay","dl")}},{key:"density",value:function(t){return this.param(t,"density","dn")}},{key:"duration",value:function(t){return this.rangeParam(t,"duration","du")}},{key:"dpr",value:function(t){return this.param(t,"dpr","dpr",function(t){return(null!=(t=t.toString())?t.match(/^\d+$/):void 0)?t+".0":Rt.normalize(t)})}},{key:"effect",value:function(t){return this.arrayParam(t,"effect","e",":",Rt.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(t){return this.rangeParam(t,"end_offset","eo")}},{key:"fallbackContent",value:function(t){return this.param(t,"fallback_content")}},{key:"fetchFormat",value:function(t){return this.param(t,"fetch_format","f")}},{key:"format",value:function(t){return this.param(t,"format")}},{key:"flags",value:function(t){return this.arrayParam(t,"flags","fl",".")}},{key:"gravity",value:function(t){return this.param(t,"gravity","g")}},{key:"fps",value:function(t){return this.param(t,"fps","fps",function(t){return Ct(t)?t:xt(t)?t.join("-"):t})}},{key:"height",value:function(t){var e=this;return this.param(t,"height","h",function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?Rt.normalize(t):null})}},{key:"htmlHeight",value:function(t){return this.param(t,"html_height")}},{key:"htmlWidth",value:function(t){return this.param(t,"html_width")}},{key:"if",value:function(){var t,n,r,i,o,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(u){case"else":return this.chain(),this.param(u,"if","if");case"end":for(this.chain(),t=r=this.chained.length-1;r>=0&&"end"!==(n=this.chained[t].getValue("if"))&&(null==n||(i=e.new().if(n),this.chained[t].remove("if"),o=this.chained[t],this.chained[t]=e.new().transformation([i,o]
1),"else"===n));t=r+=-1);return this.param(u,"if","if");case"":return $t.new().setParent(this);default:return this.param(u,"if","if",function(t){return $t.new(t).toString()})}}},{key:"keyframeInterval",value:function(t){return this.param(t,"keyframe_interval","ki")}},{key:"ocr",value:function(t){return this.param(t,"ocr","ocr")}},{key:"offset",value:function(t){var e,n,r=nn(M(null!=t?t.split:void 0)?t.split(".."):xt(t)?t:[null,null],2);if(n=r[0],e=r[1],null!=n&&this.startOffset(n),null!=e)return this.endOffset(e)}},{key:"opacity",value:function(t){return this.param(t,"opacity","o",Rt.normalize)}},{key:"overlay",value:function(t){return this.layerParam(t,"overlay","l")}},{key:"page",value:function(t){return this.param(t,"page","pg")}},{key:"poster",value:function(t){return this.param(t,"poster")}},{key:"prefix",value:function(t){return this.param(t,"prefix","p")}},{key:"quality",value:function(t){return this.param(t,"quality","q",Rt.normalize)}},{key:"radius",value:function(t){return this.arrayParam(t,"radius","r",":",Rt.normalize)}},{key:"rawTransformation",value:function(t){return this.rawParam(t,"raw_transformation")}},{key:"size",value:function(t){var e,n;if(M(null!=t?t.split:void 0)){var r=nn(t.split("x"),2);return n=r[0],e=r[1],this.width(n),this.height(e)}}},{key:"sourceTypes",value:function(t){return this.param(t,"source_types")}},{key:"sourceTransformation",value:function(t){return this.param(t,"source_transformation")}},{key:"startOffset",value:function(t){return this.rangeParam(t,"start_offset","so")}},{key:"streamingProfile",value:function(t){return this.param(t,"streaming_profile","sp")}},{key:"transformation",value:function(t){return this.transformationParam(t,"transformation","t")}},{key:"underlay",value:function(t){return this.layerParam(t,"underlay","u")}},{key:"variable",value:function(t,e){return this.param(e,t,t)}},{key:"variables",value:function(t){return this.arrayParam(t,"variables")}},{key:"videoCodec",value:function(t){return this.param(t,"video_codec","vc",qe.process_video_params)}},{key:"videoSampling",value:function(t){return this.param(t,"video_sampling","vs")}},{key:"width",value:function(t){var e=this;return this.param(t,"width","w",function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?Rt.normalize(t):null})}},{key:"x",value:function(t){return this.param(t,"x","x",Rt.normalize)}},{key:"y",value:function(t){return this.param(t,"y","y",Rt.normalize)}},{key:"zoom",value:function(t){return this.param(t,"zoom","z",Rt.normalize)}}],[{key:"new",value:function(t){return new e(t)}}])}(fn);vn.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],vn.PARAM_NAMES=vn.methods.map(V).concat(ee.CONFIG_PARAMS);var yn=vn;function mn(t){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(t)}function bn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,gn(r.key),r)}}function gn(t){var e=function(t,e){if("object"!=mn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==mn(e)?e:e+""}var wn=function(){return function(t,e,n){return e&&bn(t.prototype,e),n&&bn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e,n,r){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.publicId=n,null==r&&(Bt(n)?(r=n,this.publicId=void 0):r={}),(i=new yn(r)).setParent(this),this.transformation=function(){return i}},[{key:"htmlAttrs",value:function(t){var e,n;return function(){var r;for(e in r=[],t)(n=Cn(t[e]))&&r.push(_n(e,n));return r}().sort().join(" ")}},{key:"getOptions",value:function(){return this.transformation().toOptions()}},{key:"getOption",value:function(t){return this.transformation().getValue(t)}},{key:"attributes",value:function(){var t=this.transformation().toHtmlAttributes();return Object.keys(t).forEach(function(e){Bt(t[e])&&delete t[e]}),t.attributes&&(kt(t,t.attributes),delete t.attributes),t}},{key:"setAttr",value:function(t,e){return this.transformation().set("html_".concat(t),e),this}},{key:"getAttr",value:function(t){return this.attributes()["html_".concat(t)]||this.attributes()[t]}},{key:"removeAttr",value:function(t){var e;return null!=(e=this.transformation().remove("html_".concat(t)))?e:this.transformation().remove(t)}},{key:"content",value:function(){return""}},{key:"openTag",value:function(){var t="<"+this.name,e=this.htmlAttrs(this.attributes());return e&&e.length>0&&(t+=" "+e),t+">"}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var t,e,n,r;if(!M("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(e in t=document.createElement(this.name),n=this.attributes())r=n[e],t.setAttribute(e,r);return t}}],[{key:"new",value:function(t,e,n){return new this(t,e,n)}},{key:"isResponsive",value:function(t,e){var n;return n=dt(t,"src-cache")||dt(t,"src"),gt(t,e)&&/\bw_auto\b/.exec(n)}}])}();function _n(t,e){return e?!0===e?t:"".concat(t,'="').concat(e,'"'):void 0}function Cn(t){return Ct(t)?t.replace('"',"&#34;").replace("'","&#39;"):t}var kn=wn,On=["placeholder","accessibility"];function Sn(t){return!!t&&!!t.match(/^https?:\//)}function An(t,e){if(e.cloud_name&&"/"===e.cloud_name[0])return"/res"+e.cloud_name;var n="http://",r="",i="res",o=".cloudinary.com",a="/"+e.cloud_name;return e.protocol&&(n=e.protocol+"//"),e.private_cdn&&(r=e.cloud_name+"-",a=""),e.cdn_subdomain&&(i="res-"+function(t){return u(t)%5+1}(t)),e.secure?(n="https://",!1===e.secure_cdn_subdomain&&(i="res"),null!=e.secure_distribution&&e.secure_distribution!==c&&e.secure_distribution!==f&&(r="",i="",o=e.secure_distribution)):e.cname&&(n="http://",r="",i=e.cdn_subdomain?"a"+(u(t)%5+1)+".":"",o=e.cname),[n,r,i,o,a].join("")}function En(t){return encodeURIComponent(t).replace(/%3A/g,":").replace(/%2F/g,"/")}function jn(t){var e=t||{},n=e.placeholder,r=e.accessibility,i=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,On),o=new yn(i);return r&&_[r]&&o.chain().effect(_[r]),n&&("predominant-color"===n&&o.getValue("width")&&o.getValue("height")&&(n+="-pixel"),(w[n]||w.blur).forEach(function(t){return o.chain().transformation(t)})),o.serialize()}function Pn(t,e){var n,r,i=e.type;return Sn(t)||"fetch"!==i?t:(n=t,r=document.location.protocol+"//"+document.location.host,"?"===n[0]?r+=document.location.pathname:"/"!==n[0]&&(r+=document.location.pathname.replace(/\/[^\/]*$/,"/")),r+n)}function xn(t,e){if(Sn(t)&&("upload"===e.type||"asset"===e.type))return t;var n=function(t,e){var n=e.force_version||void 0===e.force_version,r=t.indexOf("/")<0||t.match(/^v[0-9]+/)||Sn(t)||e.version;
1return n&&!r&&(e.version=1),e.version?"v".concat(e.version):""}(t,e),r=jn(e),i=An(t,e),o=function(t){var e=t.signature,n=!e||0===e.indexOf("s--")&&"--"===e.substr(-2);return delete t.signature,n?e:"s--".concat(e,"--")}(e),u=function(t){var e,n=t.resource_type,r=void 0===n?"image":n,i=t.type,o=void 0===i?"upload":i,u=t.url_suffix,a=t.use_root_path,s=t.shorten,c=r;if(Bt(c)&&(c=(e=c).resource_type,o=e.type,s=e.shorten),null==o&&(o="upload"),null!=u&&(c=v["".concat(c,"/").concat(o)],o=null,null==c))throw new Error("URL Suffix only supported for ".concat(Object.keys(v).join(", ")));if(a){if(("image"!==c||"upload"!==o)&&"images"!==c)throw new Error("Root path only supported for image/upload");c=null,o=null}return s&&"image"===c&&"upload"===o&&(c="iu",o=null),[c,o].join("/")}(e);return t=function(t,e){if(Sn(t))t=En(t);else{try{t=decodeURIComponent(t)}catch(t){}t=En(t),e.url_suffix&&(t=t+"/"+e.url_suffix),e.format&&(e.trust_public_id||(t=t.replace(/\.(jpg|png|gif|webp)$/,"")),t=t+"."+e.format)}return t}(t,e),Ot([i,u,o,r,n,t]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}function Dn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return t;e=function(t,e){return t instanceof yn&&(t=t.toOptions()),"fetch"===(t=D({},t,e,y)).type&&(t.fetch_format=t.fetch_format||t.format),t}(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),t=Pn(t,e);var n=function(t){var e=t.cloud_name,n=t.url_suffix;return e?n&&n.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name"}(e);if(n)throw n;var r=xn(t,e);if(e.urlAnalytics){var i=ft(pt(e)),o="?";r.indexOf("?")>=0&&(o="&"),r="".concat(r).concat(o,"_a=").concat(i)}if(e.auth_token){var u=r.indexOf("?")>=0?"&":"?";r="".concat(r).concat(u,"__cld_token__=").concat(e.auth_token)}return r}function Bn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,u,a=[],s=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){c=!0,i=t}finally{try{if(!s&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Tn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Ln=Y;function Fn(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Z(r);return n=n||r,i.raw_transformation=new yn([kt({},n),{crop:"scale",width:e}]).toString(),Dn(t,i)}function Mn(t){return function(t){var e=t.breakpoints||[];if(e.length)return e;var n=Bn([t.min_width,t.max_width,t.max_images].map(Number),3),r=n[0],i=n[1],o=n[2];if([r,i,o].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(r>i)throw"min_width must be less than max_width";if(o<=0)throw"max_images must be a positive integer";1===o&&(r=i);for(var u=Math.ceil((i-r)/Math.max(o-1,1)),a=r;a<i;a+=u)e.push(a);return e.push(i),e}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function In(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={};if(Ln(n))return i;var o=!e.sizes&&!0===n.sizes,u=!e.srcset;if(u||o){var a=Mn(t,n,r);if(u){var s=function(t,e,n,r){return q(r=St(r)),e.map(function(e){return"".concat(Fn(t,e,n,r)," ").concat(e,"w")}).join(", ")}(t,a,n.transformation,r);Ln(s)||(i.srcset=s)}if(o){var c=function(t){return null==t?"":t.map(function(t){return"(max-width: ".concat(t,"px) ").concat(t,"px")}).join(", ")}(a);Ln(c)||(i.sizes=c)}}return i}function Rn(t){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(t)}function Vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,zn(r.key),r)}}function zn(t){var e=function(t,e){if("object"!=Rn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==Rn(e)?e:e+""}function Hn(t,e,n){return e=Qn(e),function(t,e){if(e&&("object"==Rn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Nn()?Reflect.construct(e,n||[],Qn(t).constructor):e.apply(t,n))}function Nn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Nn=function(){return!!t})()}function Un(){return Un="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Qn(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Un.apply(null,arguments)}function Qn(t){return Qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qn(t)}function Zn(t,e){return Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zn(t,e)}var qn=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Hn(this,e,["img",t,n])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zn(t,e)}(e,t),function(t,e,n){return e&&Vn(t.prototype,e),n&&Vn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t,n,r;t=function(t,e,n,r){var i=Un(Qn(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}(e,"attributes",this,3)([])||{},n=this.getOptions();var i=this.getOption("attributes")||{},o=this.getOption("srcset")||i.srcset,u={};return Ct(o)?u.srcset=o:u=In(this.publicId,i,o,n),Y(u)||(delete t.width,delete t.height),kt(t,u),null==t[r=n.responsive&&!n.client_hints?"data-src":"src"]&&(t[r]=Dn(this.publicId,this.getOptions())),t}}])}(kn),$n=qn;function Yn(t){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(t)}function Wn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Xn(r.key),r)}}function Xn(t){var e=function(t,e){if("object"!=Yn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Yn(e)?e:e+""}function Gn(t,e,n){return e=tr(e),function(t,e){if(e&&("object"==Yn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Jn()?Reflect.construct(e,n||[],tr(t).constructor):e.apply(t,n))}function Jn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Jn=function(){return!!t})()}function Kn(){return Kn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=tr(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Kn.apply(null,arguments)}function tr(t){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tr(t)}function er(t,e){return er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},er(t,e)}var nr=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Gn(this,e,["source",t,n])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&er(t,e)}(e,t),function(t,e,n){return e&&Wn(t.prototype,e),n&&Wn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t=this.getOption("srcset"),n=function(t,e,n,r){var i=Kn(tr(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}(e,"attributes",this,3)([])||{},r=this.getOptions();return kt(n,In(this.publicId,n,t,r)),n.srcset||(n.srcset=Dn(this.publicId,r)),!n.media&&r.media&&(n.media=function(t){var e=[];return null!=t&&(null!=t.min_width&&e.push("(min-width: ".concat(t.min_width,"px)")),null!=t.max_width&&e.push("(max-width: ".concat(t.max_width,"px)"))),e.join(" and ")}(r.media)),n}}])}(kn),rr=nr;function ir(t){return ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(t)}function or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ur(r.key),r)}}function ur(t){var e=function(t,e){if("object"!=ir(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==ir(e)?e:e+""}function ar(t,e,n){return e=lr(e),function(t,e){if(e&&("object"==ir(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,sr()?Reflect.construct(e,n||[],lr(t).constructor):e.apply(t,n))}function sr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(sr=function(){return!!t})()}function cr(){return cr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=lr(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},cr.apply(null,arguments)}function lr(t){return lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lr(t)}function fr(t,e){return fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fr(t,e)}var pr=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=ar(this,e,["picture",t,r])).widthList=i,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fr(t,e)}(e,t),function(t,e,n){return e&&or(t.prototype,e),n&&or(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"content",value:function(){var t=this;return this.widthList.map(function(e){var n=e.min_width,r=e.max_width,i=e.transformation,o=t.getOptions(),u=new yn(o);return u.chain().fromOptions("string"==typeof i?{raw_transformation:i}:i),(o=Z(o)).media={min_width:n,max_width:r},o.transformation=u,new rr(t.publicId,o).toHtml()}).join("")+new $n(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var t=function(t,e,n,r){var i=cr(lr(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}(e,"attributes",this,3)([]);return delete t.width,delete t.height,t}},{key:"closeTag",value:function(){return"</"+this.name+">"}}])}(kn),dr=pr;function hr(t){return hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(t)}function vr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yr(r.key),r)}}function yr(t){var e=function(t,e){if("object"!=hr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hr(e)?e:e+""}function mr(t,e,n){return e=wr(e),function(t,e){if(e&&("object"==hr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,br()?Reflect.construct(e,n||[],wr(t).constructor):e.apply(t,n))}function br(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(br=function(){return!!t})()}function gr(){return gr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=wr(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},gr.apply(null,arguments)}function wr(t){return wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wr(t)}function _r(t,e){return _r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_r(t,e)}var Cr=["source_types","source_transformation","fallback_content","poster","sources"],kr=["webm","mp4","ogv"],Or={format:"jpg",resource_type:"video"},Sr=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=D({},n,m),mr(this,e,["video",t.replace(/\.(mp4|ogv|webm)$/,""),n])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_r(t,e)}(e,t),function(t,e,n){return e&&vr(t.prototype,e),n&&vr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"setSourceTransformation",value:function(t){return this.transformation().sourceTransformation(t),this}},{key:"setSourceTypes",value:function(t){return this.transformation().sourceTypes(t),this}},{key:"setPoster",value:function(t){return this.transformation().poster(t),this}},{key:"setFallbackContent",value:function(t){return this.transformation().fallbackContent(t),this}},{key:"content",value:function(){var t=this,e=this.transformation().getValue("source_types"),n=this.transformation().getValue("source_transformation"),r=this.transformation().getValue("fallback_content"),i=this.getOption("sources"),o=[];
1return xt(i)&&!Y(i)?o=i.map(function(e){var n=Dn(t.publicId,D({},e.transformations||{},{resource_type:"video",format:e.type}),t.getOptions());return t.createSourceTag(n,e.type,e.codecs)}):(Y(e)&&(e=kr),xt(e)&&(o=e.map(function(e){var r=Dn(t.publicId,D({},n[e]||{},{resource_type:"video",format:e}),t.getOptions());return t.createSourceTag(r,e)}))),o.join("")+r}},{key:"attributes",value:function(){var t=this.getOption("source_types"),n=this.getOption("poster");if(void 0===n&&(n={}),Bt(n)){var r=null!=n.public_id?y:Or;n=Dn(n.public_id||this.publicId,D({},n,r,this.getOptions()))}var i=function(t,e,n,r){var i=gr(wr(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}(e,"attributes",this,3)([])||{};return i=O(i,Cr),!Y(this.getOption("sources"))||Y(t)||xt(t)||(i.src=Dn(this.publicId,this.getOptions(),{resource_type:"video",format:t})),null!=n&&(i.poster=n),i}},{key:"createSourceTag",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null;return Y(e)||(r="video/"+("ogv"===e?"ogg":e),Y(n)||(r+="; codecs="+(xt(n)?n.join(", "):n))),"<source "+this.htmlAttrs({src:t,type:r})+">"}}])}(kn),Ar=Sr;function Er(t){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(t)}function jr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Pr(r.key),r)}}function Pr(t){var e=function(t,e){if("object"!=Er(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Er(e)?e:e+""}function xr(t,e,n){return e=Br(e),function(t,e){if(e&&("object"==Er(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Dr()?Reflect.construct(e,n||[],Br(t).constructor):e.apply(t,n))}function Dr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Dr=function(){return!!t})()}function Br(t){return Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Br(t)}function Tr(t,e){return Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Tr(t,e)}var Lr=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),xr(this,e,["meta",void 0,Dt({"http-equiv":"Accept-CH",content:"DPR, Viewport-Width, Width"},t)])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tr(t,e)}(e,t),function(t,e,n){return e&&jr(t.prototype,e),n&&jr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"closeTag",value:function(){return""}}])}(kn),Fr=Lr;function Mr(t){return function(t){if(Array.isArray(t))return Ir(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ir(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ir(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Rr=function(t,e,n,r){return new Promise(function(i,o){t.innerHTML=e.videoTag(n,r).toHtml(),t.querySelector(".cld-transparent-video").style.width="100%",i(t)})},Vr=function(t,e){t.transformation?t.transformation.push({flags:[e]}):(t.flags||(t.flags=[]),"string"==typeof t.flags&&(t.flags=[t.flags]),t.flags.push(e))},zr=function(t){t.autoplay=!0,t.muted=!0,t.controls=!1,t.max_timeout_ms=t.max_timeout_ms||p,t.class=t.class||"",t.class+=" cld-transparent-video",t.externalLibraries=t.externalLibraries||{},t.externalLibraries.seeThru||(t.externalLibraries.seeThru=g.seeThru),Vr(t,"alpha")},Hr=function(t,e,n){return new Promise(function(r,i){if(n)r();else{var o=document.createElement("script");o.src=t;var u=setTimeout(function(){i({status:"error",message:"Timeout loading script ".concat(t)})},e);o.onerror=function(){clearTimeout(u),i({status:"error",message:"Error loading ".concat(t)})},o.onload=function(){clearTimeout(u),r()},document.head.appendChild(o)}})};function Nr(t){return new Promise(function(e,n){fetch(t).then(function(t){t.blob().then(function(t){e(t)})}).catch(function(){n("error")})})}function Ur(t){return new Promise(function(e,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(t){e(r.response)},r.onerror=function(){n("error")},r.open("GET",t,!0),r.send()})}var Qr,Zr,qr,$r,Yr,Wr,Xr=function(t,e){return new Promise(function(n,r){var i=function(t,e){return setTimeout(function(){e({status:"error",message:"Timeout loading Blob URL"})},t)}(e,r);("undefined"!=typeof fetch&&fetch?Nr:Ur)(t).then(function(t){n({status:"success",payload:{blobURL:URL.createObjectURL(t)}})}).catch(function(){r({status:"error",message:"Error loading Blob URL"})}).finally(function(){clearTimeout(i)})})},Gr=function(t){var e=t.autoplay,n=t.playsinline,r=t.loop,i=t.muted,o=t.poster,u=t.blobURL,a=t.videoURL,s=document.createElement("video");return s.style.visibility="hidden",s.position="absolute",s.x=0,s.y=0,s.src=u,s.setAttribute("data-video-url",a),e&&s.setAttribute("autoplay",e),n&&s.setAttribute("playsinline",n),r&&s.setAttribute("loop",r),i&&s.setAttribute("muted",i),i&&(s.muted=i),o&&s.setAttribute("poster",o),s.onload=function(){URL.revokeObjectURL(u)},s},Jr=function(t,e,n,r){var i=window,o=i.seeThru,u=i.setTimeout,a=i.clearTimeout;return new Promise(function(i,s){var c=u(function(){s({status:"error",message:"Timeout instantiating seeThru instance"})},e);if(o)var l=o.create(t).ready(function(){a(c);var t=l.getCanvas();t.style.width="100%",t.className+=" "+n,r&&l.play(),i(l)});else s({status:"error",message:"Error instantiating seeThru instance"})})},Kr=function(t,e,n){var r=n.poster,i=n.autoplay,o=n.playsinline,u=n.loop,a=n.muted;return e+=".mp4",new Promise(function(s,c){Hr(n.externalLibraries.seeThru,n.max_timeout_ms,window.seeThru).then(function(){Xr(e,n.max_timeout_ms).then(function(l){var f=l.payload,p=Gr({blobURL:f.blobURL,videoURL:e,poster:r,autoplay:i,playsinline:o,loop:u,muted:a});t.appendChild(p),Jr(p,n.max_timeout_ms,n.class,n.autoplay).then(function(){s(t)}
1).catch(function(t){c(t)})}).catch(function(t){var e=t.status,n=t.message;c({status:e,message:n})})}).catch(function(t){var e=t.status,n=t.message;c({status:e,message:n})})})},ti=function(){return new Promise(function(t,e){rt()&&t(!1);var n=document.createElement("video"),r=n.canPlayType&&n.canPlayType('video/webm; codecs="vp9"');t("maybe"===r||"probably"===r)})};function ei(t){return ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(t)}function ni(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ri(r.key),r)}}function ri(t){var e=function(t,e){if("object"!=ei(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ei(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ei(e)?e:e+""}qr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e*Math.ceil(t/e)},Zr=function(t,e){var n;for(n=t.length-2;n>=0&&t[n]>=e;)n--;return t[n+1]},Qr=function(t,e,n,r){var i,o,u,a;return!(a=null!=(i=null!=(o=null!=(u=r.responsive_use_breakpoints)?u:r.responsive_use_stoppoints)?o:this.config("responsive_use_breakpoints"))?i:this.config("responsive_use_stoppoints"))||"resize"===a&&!r.resizing?e:this.calc_breakpoint(t,e,n)},$r=function(t){var e,n;for(e=0;(t=null!=t?t.parentNode:void 0)instanceof Element&&!e;)n=window.getComputedStyle(t),/^inline/.test(n.display)||(e=_t(t));return e},Wr=function(t,e){return t.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(e))},Yr=function(t,e){var n;return t>(n=dt(e,"width")||0)&&(n=t,ht(e,"width",t)),n};var ii=function(){return function(t,e,n){return e&&ni(t.prototype,e),n&&ni(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,n=new ee(e),this.config=function(t,e){return n.config(t,e)},this.fromDocument=function(){return n.fromDocument(),this},this.fromEnvironment=function(){return n.fromEnvironment(),this},this.init=function(){return n.init(),this}},[{key:"url",value:function(t){return Dn(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this.config())}},{key:"video_url",value:function(t,e){return e=Dt({resource_type:"video"},e),this.url(t,e)}},{key:"video_thumbnail_url",value:function(t,e){return e=Dt({},d,e),this.url(t,e)}},{key:"transformation_string",value:function(t){return new yn(t).serialize()}},{key:"image",value:function(t){var e,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(t,i),e=null!=(r=null!=i.client_hints?i.client_hints:this.config("client_hints"))&&r,null!=i.src||e||n.setAttr("src",""),n=n.toDOM(),e||(ht(n,"src-cache",this.url(t,i)),this.cloudinary_update(n,i)),n}},{key:"imageTag",value:function(t,e){var n;return(n=new $n(t,this.config())).transformation().fromOptions(e),n}},{key:"pictureTag",value:function(t,e,n){var r;
1return(r=new dr(t,this.config(),n)).transformation().fromOptions(e),r}},{key:"sourceTag",value:function(t,e){var n;return(n=new rr(t,this.config())).transformation().fromOptions(e),n}},{key:"video_thumbnail",value:function(t,e){return this.image(t,kt({},d,e))}},{key:"facebook_profile_image",value:function(t,e){return this.image(t,Dt({type:"facebook"},e))}},{key:"twitter_profile_image",value:function(t,e){return this.image(t,Dt({type:"twitter"},e))}},{key:"twitter_name_profile_image",value:function(t,e){return this.image(t,Dt({type:"twitter_name"},e))}},{key:"gravatar_image",value:function(t,e){return this.image(t,Dt({type:"gravatar"},e))}},{key:"fetch_image",value:function(t,e){return this.image(t,Dt({type:"fetch"},e))}},{key:"video",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(t,e).toHtml()}},{key:"videoTag",value:function(t,e){return e=D({},e,this.config()),new Ar(t,e)}},{key:"sprite_css",value:function(t,e){return e=Dt({type:"sprite"},e),t.match(/.css$/)||(e.format="css"),this.url(t,e)}},{key:"responsive",value:function(t){var e,n,r,i,o,u=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.responsiveConfig=kt(this.responsiveConfig||{},t),i=null!=(e=this.responsiveConfig.responsive_class)?e:this.config("responsive_class"),a&&this.cloudinary_update("img.".concat(i,", img.cld-hidpi"),this.responsiveConfig),(null==(n=null!=(r=this.responsiveConfig.responsive_resize)?r:this.config("responsive_resize"))||n)&&!this.responsiveResizeInitialized){this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,o=null;var s=function(){var t,e,n,r,a,s;return t=null!=(e=null!=(n=u.responsiveConfig.responsive_debounce)?n:u.config("responsive_debounce"))?e:100,r=function(){o&&(clearTimeout(o),o=null)},a=function(){return u.cloudinary_update("img.".concat(i),u.responsiveConfig)},s=function(){return r(),a()},t?(r(),void(o=setTimeout(s,t))):a()};return window.addEventListener("resize",s),function(){return window.removeEventListener("resize",s)}}}},{key:"calc_breakpoint",value:function(t,e,n){var r=dt(t,"breakpoints")||dt(t,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||qr;return M(r)?r(e,n):(Ct(r)&&(r=r.split(",").map(function(t){return parseInt(t)}).sort(function(t,e){return t-e})),Zr(r,e))}},{key:"calc_stoppoint",value:function(t,e,n){return this.calc_breakpoint(t,e,n)}},{key:"device_pixel_ratio",value:function(t){t=null==t||t;var e=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1;t&&(e=Math.ceil(e)),(e<=0||NaN===e)&&(e=1);var n=e.toString();return n.match(/^\d+$/)&&(n+=".0"),n}},{key:"processImageTags",value:function(t,e){if(Y(t))return this;e=D({},e||{},this.config());var n=t.filter(function(t){return/^img$/i.test(t.tagName)}).map(function(t){var n=Dt({width:t.getAttribute("width"),height:t.getAttribute("height"),src:t.getAttribute("src")},e),r=n.source||n.src;delete n.source,delete n.src;var i=new yn(n).toHtmlAttributes();return ht(t,"src-cache",Dn(r,n)),t.setAttribute("width",i.width),t.setAttribute("height",i.height),t});return this.cloudinary_update(n,e),this}},{key:"cloudinary_update",value:function(t,e){var n,r,i,o,u=this;if(null===t)return this;null==e&&(e={});var a,s=null!=e.responsive?e.responsive:this.config("responsive");t=function(t){return xt(t)?t:"NodeList"===t.constructor.name?Mr(t):Ct(t)?Array.prototype.slice.call(document.querySelectorAll(t),0):[t]}(t),a=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=e.responsive_class?e.responsive_class:this.config("responsive_class");var c=null!=e.round_dpr?e.round_dpr:this.config("round_dpr");return t.forEach(function(l){if(/img/i.test(l.tagName)){var f=!0;if(s&&wt(l,a),!Y(r=dt(l,"src-cache")||dt(l,"src"))){r=Wr.call(u,r,c),kn.isResponsive(l,a)&&(0!==(n=$r(l))?(/w_auto:breakpoints/.test(r)?(o=Yr(n,l))?r=r.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(o)):f=!1:(i=/w_auto(:(\d+))?/.exec(r))&&(o=Qr.call(u,l,n,i[2],e),(o=Yr(o,l))?r=r.replace(/w_auto[^,\/]*/g,"w_".concat(o)):f=!1),mt(l,"width"),e.responsive_preserve_height||mt(l,"height")):f=!1);var p="lazy"===e.loading&&!u.isNativeLazyLoadSupported()&&u.isLazyLoadSupported()&&
1!t[0].getAttribute("src");(f||p)&&u.setAttributeIfExists(t[0],"width","data-width"),f&&!p&&yt(l,"src",r)}}}),this}},{key:"setAttributeIfExists",value:function(t,e,n){var r=t.getAttribute(n);null!=r&&yt(t,e,r)}},{key:"isLazyLoadSupported",value:function(){return window&&"IntersectionObserver"in window}},{key:"isNativeLazyLoadSupported",value:function(){return"loading"in HTMLImageElement.prototype}},{key:"transformation",value:function(t){return yn.new(this.config()).fromOptions(t).setParent(this)}},{key:"injectTransparentVideoElement",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(i,o){t||o({status:"error",message:"Expecting htmlElContainer to be HTMLElement"}),zr(r);var u=n.video_url(e,r);ti().then(function(a){var s;a?(s=Rr(t,n,e,r),i(t)):s=Kr(t,u,r),s.then(function(){i(t)}).catch(function(t){var e=t.status,n=t.message;o({status:e,message:n})})}).catch(function(t){var e=t.status,n=t.message;o({status:e,message:n})})})}}],[{key:"new",value:function(t){return new this(t)}}])}();Dt(ii,r);var oi,ui=ii,ai=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(;e&&e.length>0;){var r=e.shift();if(null!=r)return r}return null};function si(t){return si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(t)}function ci(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,li(r.key),r)}}function li(t){var e=function(t,e){if("object"!=si(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=si(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==si(e)?e:e+""}function fi(t,e,n){return e=di(e),function(t,e){if(e&&("object"==si(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,pi()?Reflect.construct(e,n||[],di(t).constructor):e.apply(t,n))}function pi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(pi=function(){return!!t})()}function di(t){return di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},di(t)}function hi(t,e){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hi(t,e)}var vi=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),fi(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hi(t,e)}(e,t),function(t,e,n){return e&&ci(t.prototype,e),n&&ci(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"image",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(t,r),e=ai(r.client_hints,this.config("client_hints"),!1),null!=r.src||e||n.setAttr("src",""),n=jQuery(n.toHtml()),e||n.data("src-cache",this.url(t,r)).cloudinary_update(r),n}},{key:"responsive",value:function(t){var e,n,r,i,o=this;if(n=jQuery.extend(n||{},t),e=this.responsiveConfig.responsive_class||this.config("responsive_class"),jQuery("img.".concat(e,", img.cld-hidpi")).cloudinary_update(n),ai(n.responsive_resize,this.config("responsive_resize"),!0)&&!r){n.resizing=r=!0,i=null;var u=function(){var t=ai(n.responsive_debounce,o.config("responsive_debounce"),100),r=function(){if(i)return clearTimeout(i),i=null},u=function(){return jQuery("img.".concat(e)).cloudinary_update(n)};
1return t?(r(),setTimeout(function(){return r(),u()},t)):u()};return jQuery(window).on("resize",u),function(){return jQuery(window).off("resize",u)}}}}])}(ui);jQuery.fn.cloudinary=function(t){return this.filter("img").each(function(){var e,n,r;return n=(e=jQuery.extend({width:jQuery(this).attr("width"),height:jQuery(this).attr("height"),src:jQuery(this).attr("src")},jQuery(this).data(),t)).source||e.src,delete e.source,delete e.src,r=jQuery.cloudinary.url(n,e),e=new yn(e).toHtmlAttributes(),jQuery(this).data("src-cache",r).attr({width:e.width,height:e.height})}).cloudinary_update(t),this},jQuery.fn.cloudinary_update=function(t){return jQuery.cloudinary.cloudinary_update(this.filter("img").toArray(),t),this},oi=null,jQuery.fn.webpify=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return t=this,r=null!=r?r:n,oi||(oi=jQuery.Deferred(),(e=new Image).onerror=oi.reject,e.onload=oi.resolve,e.src="data:image/webp;base64,UklGRi4AAABXRUJQVlA4TCEAAAAvAUAAEB8wAiMwAgSSNtse/cXjxyCCmrYNWPwmHRH9jwMA"),jQuery(function(){return oi.done(function(){return jQuery(t).cloudinary(jQuery.extend({},r,{format:"webp"}))}).fail(function(){return jQuery(t).cloudinary(n)})}),this},jQuery.fn.fetchify=function(t){return this.cloudinary(jQuery.extend(t,{type:"fetch"}))},jQuery.cloudinary=new vi,jQuery.cloudinary.fromDocument();var yi=vi;yi.prototype.delete_by_token=function(t,e){var n,r;return(r=(e=e||{}).url)||(r="https://api.cloudinary.com/v1_1/"+(e.cloud_name||jQuery.cloudinary.config().cloud_name)+"/delete_by_token"),n=jQuery.support.xhrFileUpload?"json":"iframe json",jQuery.ajax({url:r,method:"POST",data:{token:t},headers:{"X-Requested-With":"XMLHttpRequest"},dataType:n})},yi.prototype.unsigned_upload_tag=function(t,e,n){return jQuery("<input/>").attr({type:"file",name:"file"}).unsigned_cloudinary_upload(t,e,n)},jQuery.fn.cloudinary_fileupload=function(t){var e,n;return M(jQuery.fn.fileupload)?((e=!this.data("blueimpFileupload"))&&(t=jQuery.extend({maxFileSize:2e7,dataType:"json",headers:{"X-Requested-With":"XMLHttpRequest"}},t)),this.fileupload(t),e&&(this.bind("fileuploaddone",function(t,e){var n,r,i;if(!e.result.error)return e.result.path=["v",e.result.version,"/",e.result.public_id,e.result.format?"."+e.result.format:""].join(""),e.cloudinaryField&&e.form.length>0&&(i=[e.result.resource_type,e.result.type,e.result.path].join("/")+"#"+e.result.signature,n=function(){return jQuery("<input/>").attr({type:"hidden",name:e.cloudinaryField}).val(i).appendTo(e.form)},jQuery(t.target).prop("multiple")?n():(r=jQuery(e.form).find('input[name="'+e.cloudinaryField+'"]')).length>0?r.val(i):n()),jQuery(t.target).trigger("cloudinarydone",e)}),this.bind("fileuploadsend",function(t,e){return e.headers=jQuery.extend({},e.headers,{"X-Unique-Upload-Id":(1e10*Math.random()).toString(16)}),!0}),this.bind("fileuploadstart",function(t){return jQuery(t.target).trigger("cloudinarystart")}),this.bind("fileuploadstop",function(t){return jQuery(t.target).trigger("cloudinarystop")}),this.bind("fileuploadprogress",function(t,e){return jQuery(t.target).trigger("cloudinaryprogress",e)}),this.bind("fileuploadprogressall",function(t,e){return jQuery(t.target).trigger("cloudinaryprogressall",e)}),this.bind("fileuploadfail",function(t,e){return jQuery(t.target).trigger("cloudinaryfail",e)}),this.bind("fileuploadalways",function(t,e){return jQuery(t.target).trigger("cloudinaryalways",e)}),this.fileupload("option").url||(n="https://api.cloudinary.com/v1_1/"+(t.cloud_name||jQuery.cloudinary.config().cloud_name)+"/"+(t.resource_type||"auto")+"/"+(t.type||"upload"),this.fileupload("option","url",n))),this):this},jQuery.fn.cloudinary_upload_url=function(t){return M(jQuery.fn.fileupload)?(this.fileupload("option","formData").file=t,this.fileupload("add",{files:[t]}),delete this.fileupload("option","formData").file,this):this},jQuery.fn.unsigned_cloudinary_upload=function(t){var e,n,r,i,o,u,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(a=St(a),s=St(s),n=["cloud_name","resource_type","type"],i=0;i<n.length;)a[e=n[i]]&&(s[e]=a[e],delete a[e]),i++;for(o in a)u=a[o],Bt(u)?a[o]=jQuery.map(u,function(t,e){return Ct(t)&&(t=t.replace(/[\|=]/g,"\\$&")),e+"="+t}).join("|"):xt(u)&&(u.length>0&&Array.isArray(u[0])?a[o]=jQuery.map(u,function(t){return t.join(",")}).join("|"):a[o]=u.join(","));return a.upload_preset=t,s.formData=a,s.cloudinary_field&&(s.cloudinaryField=s.cloudinary_field,delete s.cloudinary_field),(r=s.html||{}).class=Tt("cloudinary_fileupload ".concat(r.class||"")),s.multiple&&(r.multiple=!0),this.attr(r).cloudinary_fileupload(s),this},jQuery.cloudinary=new yi;var mi=yi;
1e.default={ClientHintsMetaTag:Fr,Cloudinary:ui,CloudinaryJQuery:mi,Condition:$t,Configuration:ee,Expression:Rt,crc32:u,FetchLayer:Te,HtmlTag:kn,ImageTag:$n,Layer:ue,PictureTag:dr,SubtitlesLayer:Oe,TextLayer:ve,Transformation:yn,utf8_encode:o,Util:i,VideoTag:Ar}}
1})},t.exports=e()},76320:function(t){"use strict";var e={single_source_shortest_paths:function(t,n,r){var i={},o={};o[n]=0;var u,a,s,c,l,f,p,d=e.PriorityQueue.make();for(d.push(n,0);!d.empty();)for(s in a=(u=d.pop()).value,c=u.cost,l=t[a]||{})l.hasOwnProperty(s)&&(f=c+l[s],p=o[s],(void 0===o[s]||p>f)&&(o[s]=f,d.push(s,f),i[s]=a));if(void 0!==r&&void 0===o[r]){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return i},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,n,r){var i=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(t){var n,r=e.PriorityQueue,i={};for(n in t=t||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=t.sorter||r.default_sorter,i},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},25065:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>'},71725:function(t,e,n){"use strict";var r={settings:'\n    <svg viewBox="0 0 16 16">\n      <path d="M6.125,16l-0.458,-2.375c-0.319,-0.125 -0.628,-0.271 -0.927,-0.438c-0.299,-0.167 -0.58,-0.361\n        -0.844,-0.583l-2.292,0.771l-1.604,-2.771l1.813,-1.583c-0.028,-0.167 -0.049,-0.333 -0.062,-0.5c-0.014,-0.167\n        -0.021,-0.34 -0.021,-0.521c0,-0.181 0.007,-0.354 0.021,-0.521c0.014,-0.167 0.035,-0.333 0.062,-0.5l-1.813,\n        -1.583l1.604,-2.771l2.292,0.771c0.264,-0.222 0.545,-0.417 0.844,-0.583c0.299,-0.167 0.608,-0.312 0.927,\n        -0.438l0.458,-2.375l3.208,0l0.458,2.375c0.319,0.125 0.628,0.271 0.927,0.438c0.299,0.167 0.58,0.361 0.844,\n        0.583l2.292,-0.771l1.604,2.771l-1.812,1.583c0.028,0.167 0.049,0.333 0.062,0.5c0.014,0.167 0.021,0.34 0.021,\n        0.521c0,0.181 -0.007,0.354 -0.021,0.521c-0.014,0.167 -0.035,0.333 -0.062,0.5l1.812,1.583l-1.604,2.771l-2.292,\n        -0.771c-0.264,0.222 -0.545,0.417 -0.844,0.583c-0.299,0.167 -0.608,0.312 -0.927,0.438l-0.458,2.375l-3.208,0Zm1.229,\n        -1.5l0.75,0l0.396,-2.062c0.528,-0.097 1.021,-0.278 1.479,-0.542c0.458,-0.264 0.854,-0.597 1.188,-1l2,0.667l0.375,\n        -0.625l-1.583,-1.396c0.083,-0.236 0.149,-0.483 0.198,-0.74c0.049,-0.257 0.073,-0.524 0.073,-0.802c0,-0.278 -0.024,\n        -0.545 -0.073,-0.802c-0.049,-0.257 -0.115,-0.503 -0.198,-0.74l1.583,-1.396l-0.375,-0.625l-2,0.667c-0.333,-0.403\n        -0.729,-0.736 -1.188,-1c-0.458,-0.264 -0.951,-0.444 -1.479,-0.542l-0.396,-2.062l-0.75,0l-0.396,2.062c-0.528,0.097\n        -1.021,0.278 -1.479,0.542c-0.458,0.264 -0.854,0.597 -1.188,1l-2,-0.667l-0.375,0.625l1.583,1.396c-0.083,0.236\n        -0.149,0.483 -0.198,0.74c-0.049,0.257 -0.073,0.524 -0.073,0.802c0,0.278 0.024,0.545 0.073,0.802c0.049,0.257\n        0.115,0.503 0.198,0.74l-1.583,1.396l0.375,0.625l2,-0.667c0.333,0.403 0.729,0.736 1.188,1c0.458,0.264 0.951,0.444\n        1.479,0.542l0.396,2.062Zm0.375,-3.5c0.833,0 1.542,-0.292 2.125,-0.875c0.583,-0.583 0.875,-1.292 0.875,-2.125c0,\n        -0.833 -0.292,-1.542 -0.875,-2.125c-0.583,-0.583 -1.292,-0.875 -2.125,-0.875c-0.833,0 -1.542,0.292 -2.125,\n        0.875c-0.583,0.583 -0.875,1.292 -0.875,2.125c0,0.833 0.292,1.542 0.875,2.125c0.583,0.583 1.292,0.875 2.125,\n        0.875Z" />\n    </svg>\n  ',blog:'\n    <svg viewBox="0 0 16 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/">\n      <path d="M13,7.25l0,-1.5l3,0l0,1.5l-3,0Zm0.854,5.75l-2.458,-1.708l0.875,-1.229l2.458,1.708l-0.875,1.229Zm-1.604,\n        -10.062l-0.854,-1.229l2.458,-1.708l0.854,1.229l-2.458,1.708Zm-10.25,9.562l0,-4l-0.5,0c-0.412,0 -0.766,-0.147\n        -1.059,-0.441c-0.294,-0.294 -0.441,-0.647 -0.441,-1.059l0,-1c0,-0.413 0.147,-0.766 0.441,-1.059c0.294,-0.294\n        0.647,-0.441 1.059,-0.441l2.896,0l4.604,-2.75l0,9.5l-4.479,-2.75l-0.521,0l0,4l-2,0Zm5.5,-3.937l0,-4.167l-2.688,\n        1.604l-3.313,0l0,1l3.458,0l2.542,1.562Zm2.5,0.375l0,-4.875c0.319,0.306 0.566,0.674 0.74,1.104c0.174,0.431 0.26,\n        0.875 0.26,1.333c0,0.458 -0.087,0.903 -0.26,1.333c-0.174,0.431 -0.42,0.799 -0.74,1.104Z" />\n    </svg>\n  ',signOut:'\n    <svg viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" >
1\n      <path d="M1.5,14c-0.412,0 -0.766,-0.147 -1.059,-0.441c-0.294,-0.294 -0.441,-0.647 -0.441,-1.059l0,-11c0,-0.413\n      0.147,-0.766 0.441,-1.059c0.294,-0.294 0.647,-0.441 1.059,-0.441l5.5,0l0,1.5l-5.5,0l0,11l5.5,0l0,1.5l-5.5,0Zm9,\n      -3.5l-1.062,-1.062l1.688,-1.688l-6.125,0l0,-1.5l6.125,0l-1.688,-1.687l1.062,-1.062l3.5,3.5l-3.5,3.5Z" />\n    </svg>\n\n  ',downArrow:'\n    <svg viewBox="0 0 10 6">\n      <polygon points="0,0 10,0 5,6 0,0" />\n    </svg>',menuItemTick:n(25065),downArrowPointy:'\n    <svg viewBox="0 0 14 9">\n      <polyline points="0,0 7,9 14,0" />\n    </svg>',sortedByDown:'\n    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">\n      <path d="M400-800v402L250-548l-90 90 320 320 320-320-90-90-150 150v-402H400Z" fill="currentColor"/>\n    </svg>',sortedByUp:'\n    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">\n      <path d="M400-160v-402L250-412l-90-90 320-320 320 320-90 90-150-150v402H400Z" fill="currentColor"/>\n    </svg>',filter:'\n    <svg viewBox="0 0 52 55" class="filter">\n     <path d="M51.29,2.331L51.29,6.108C51.29,6.679 51.08,7.23 50.7,7.656L32.639,27.976L32.639,43.172C32.639,\n     43.862 32.331,44.52 31.802,44.963L20.563,54.328C19.803,54.96 18.651,54.421 18.651,53.433L18.651,27.976L0.59,\n     7.656C0.21,7.23 0,6.679 0,6.108L0,2.331C0,1.044 1.042,0 2.331,0L48.959,0C50.248,0 51.29,1.044 51.29,2.331"/>\n    </svg>',clear:'\n    <svg viewBox="0 0 10.3 10.3">\n      <path d="M10.1,8.3c0.2,0.2,0.2,0.5,0,0.7L9,10.1c-0.2,0.2-0.5,0.2-0.7,0L5.1,7L2,10.1c-0.2,0.2-0.5,0.2-0.7,0L0.2,9\n        C0,8.8,0,8.5,0.2,8.3l3.1-3.1L0.2,2c-0.2-0.2-0.2-0.5,0-0.7l1.1-1.1c0.2-0.2,0.5-0.2,0.7,0l3.1,3.1l3.1-3.1C8.5,0,8.8,0,9,0.2\n        l1.1,1.1c0.2,0.2,0.2,0.5,0,0.7L7,5.1L10.1,8.3z"/>\n    </svg>',crossInCircle:'\n    <svg viewBox="0 0 40 41">\n      <circle cx="17" cy="17" r="17" />\n      <path d="M24.3 23L23 24.3l-6-6-6 6L9.7 23l6-6-6-6L11 9.7l6 6 6-6 1.3 1.3-6 6 6 6" />\n    </svg>',crossInCircleOutline:'\n    <svg viewBox="0 0 20 20">\n      <path d="M14.42,7.938L12.357,10L14.42,12.062C14.582,12.225 14.582,12.488 14.42,12.652L12.652,14.419C12.489,14.582 12.225,14.582 12.062,14.419L10,12.357L7.938,14.419C7.775,14.582 7.512,14.582 7.349,14.419L5.581,12.652C5.418,12.488 5.418,12.225 5.581,12.062L7.643,10L5.581,7.938C5.418,7.775 5.418,7.511 5.581,7.348L7.349,5.58C7.512,5.418 7.775,5.418 7.938,5.58L10,7.643L12.062,5.58C12.225,5.418 12.489,5.418 12.652,5.58L14.42,7.348C14.582,7.511 14.582,7.775 14.42,7.938M10,17.5C5.864,17.5 2.5,14.135 2.5,10C2.5,5.864 5.864,2.5 10,2.5C14.136,2.5 17.5,5.864 17.5,10C17.5,14.135 14.136,17.5 10,17.5M10,0C4.486,0 0,4.486 0,10C0,15.513 4.486,20 10,20C15.514,20 20,15.513 20,10C20,4.486 15.514,0 10,0"/>\n    </svg>',tickInCircleOutline:'\n    <svg viewBox="0 0 20 20">\n        <path d="M15.048,6.909C15.204,7.062 15.214,7.308 15.074,7.475L9.398,14.19C9.072,14.576 8.481,14.585 8.143,14.211L4.902,10.617C4.756,10.457 4.758,10.212 4.907,10.053L5.854,9.042C5.992,8.895 6.212,8.867 6.382,8.974L8.558,10.359L13.583,6.005C13.747,5.862 13.994,5.87 14.149,6.023L15.048,6.909ZM10,17.5C5.864,17.5 2.5,14.135 2.5,10C2.5,5.865 5.864,2.5 10,2.5C14.136,2.5 17.5,5.865 17.5,10C17.5,14.135 14.136,17.5 10,17.5M10,-0C4.486,-0 0,4.486 0,10C0,15.514 4.486,20 10,20C15.515,20 20,15.514 20,10C20,4.486 15.515,-0 10,-0"/>\n    </svg>',leftArrow:'\n    <svg viewBox="0 0 9 9">\n      <path d="M4.368,8.544L0,4.304L0,4.24L4.368,-0L5.04,0.736L1.824,3.728L8.848,3.728L8.848,4.816L1.824,4.816L5.04,7.808L4.368,8.544Z"/>\n    </svg>',magnifyingGlass:'\n    <svg viewBox="0 0 18 18">\n      <path d="M6.9 11.5a4.6 4.6 0 1 1 0-9.2 4.6 4.6 0 0 1 0 9.2m10.9 4.1-5-5c.6-1.1 1-2.4 1-3.7a6.9 6.9 0 1 0-3.2 5.8l5 5c.3.4.8.4 1 0l1.2-1c.3-.3.3-.8 0-1"/>\n    </svg>',chunkyTick:'\n    <svg viewBox="0 0 13 11">\n      <path d="M12.8 1.3c.2.1.2.5 0 .7l-7 8.4a1 1 0 0 1-1.6 0l-4-4.5a.5.5 0 0 1 0-.7l1.1-1.3c.2-.2.5-.2.7 0l2.7 1.7L11 0c.2-.2.5-.1.7 0l1.1 1.2Z"/>\n    </svg>',removeField:'\n    <svg height="14" width="14">\n      <circle fill="#999" cx="7" cy="7" r="6.5"></circle>\n      <rect x="3.5" y="6.5" fill="#fff" width="7" height="1.5"></rect>\n    </svg>',calendar:'\n    <svg viewBox="0 0 22 22" class="calendar">\n      <g transform="matrix(1,0,0,1,-22426.8,-12037.9)">
1\n        <g transform="matrix(0.956522,0,0,0.956522,22445.9,12039.8)">\n          <path d="M0,19L-0.002,5L-18.002,5L-18.002,19L0,19ZM1.998,0L1.998,19C1.998,20.104 1.103,21\n            -0.002,21L-18.002,21C-19.106,21 -20.002,20.104 -20.002,19L-20.002,0C-20.002,-1.103 -19.105,-2\n            -18.002,-2L-18.002,-0.5C-18.002,-0.224 -17.778,0 -17.502,0L-16.502,0C-16.226,0 -16.002,-0.224\n            -16.002,-0.5L-16.002,-1.5C-16.002,-1.776 -15.778,-2 -15.502,-2L-14.502,-2C-14.226,-2 -14.002,-1.776\n            -14.002,-1.5L-14.002,-0.5C-14.002,-0.224 -13.778,0 -13.502,0L-12.502,0C-12.226,0 -12.002,-0.224\n            -12.002,-0.5L-12.002,-1.5C-12.002,-1.776 -11.778,-2 -11.502,-2L-10.502,-2C-10.226,-2 -10.002,-1.776\n            -10.002,-1.5L-10.002,-0.5C-10.002,-0.224 -9.778,0 -9.502,0L-8.502,0C-8.226,0 -8.002,-0.224\n            -8.002,-0.5L-8.002,-1.5C-8.002,-1.776 -7.778,-2 -7.502,-2L-6.502,-2C-6.226,-2 -6.002,-1.776\n            -6.002,-1.5L-6.002,-0.5C-6.002,-0.224 -5.778,0 -5.502,0L-4.502,0C-4.226,0 -4.002,-0.224\n            -4.002,-0.5L-4.002,-1.5C-4.002,-1.776 -3.778,-2 -3.502,-2L-2.502,-2C-2.226,-2 -2.002,-1.776\n            -2.002,-1.5L-2.002,-0.5C-2.002,-0.224 -1.778,0 -1.502,0L-0.502,0C-0.226,0 -0.002,-0.224\n            -0.002,-0.5L-0.002,-2C1.102,-2 1.998,-1.103 1.998,0M-6.502,7L-7.502,7C-7.778,7 -8.002,7.224\n            -8.002,7.5L-8.002,8.5C-8.002,8.776 -7.778,9 -7.502,9L-6.502,9C-6.226,9 -6.002,8.776\n            -6.002,8.5L-6.002,7.5C-6.002,7.224 -6.226,7 -6.502,7M-6.502,11L-7.502,11C-7.778,11 -8.002,11.224\n            -8.002,11.5L-8.002,12.5C-8.002,12.776 -7.778,13 -7.502,13L-6.502,13C-6.226,13 -6.002,12.776\n            -6.002,12.5L-6.002,11.5C-6.002,11.224 -6.226,11 -6.502,11M-2.502,11L-3.502,11C-3.778,11 -4.002,11.224\n            -4.002,11.5L-4.002,12.5C-4.002,12.776 -3.778,13 -3.502,13L-2.502,13C-2.226,13 -2.002,12.776\n            -2.002,12.5L-2.002,11.5C-2.002,11.224 -2.226,11 -2.502,11M-2.502,7L-3.502,7C-3.778,7 -4.002,7.224\n            -4.002,7.5L-4.002,8.5C-4.002,8.776 -3.778,9 -3.502,9L-2.502,9C-2.226,9 -2.002,8.776\n            -2.002,8.5L-2.002,7.5C-2.002,7.224 -2.226,7 -2.502,7M-14.502,15L-15.502,15C-15.778,15 -16.002,15.224\n            -16.002,15.5L-16.002,16.5C-16.002,16.776 -15.778,17 -15.502,17L-14.502,17C-14.226,17 -14.002,16.776\n            -14.002,16.5L-14.002,15.5C-14.002,15.224 -14.226,15 -14.502,15M-14.502,11L-15.502,11C-15.778,11\n            -16.002,11.224 -16.002,11.5L-16.002,12.5C-16.002,12.776 -15.778,13 -15.502,13L-14.502,13C-14.226,13\n            -14.002,12.776 -14.002,12.5L-14.002,11.5C-14.002,11.224 -14.226,11 -14.502,11M-6.502,15L-7.502,15C-7.778,15\n            -8.002,15.224 -8.002,15.5L-8.002,16.5C-8.002,16.776 -7.778,17 -7.502,17L-6.502,17C-6.226,17 -6.002,16.776\n            -6.002,16.5L-6.002,15.5C-6.002,15.224 -6.226,15 -6.502,15M-10.502,7L-11.502,7C-11.778,7 -12.002,7.224\n            -12.002,7.5L-12.002,8.5C-12.002,8.776 -11.778,9 -11.502,9L-10.502,9C-10.226,9 -10.002,8.776\n            -10.002,8.5L-10.002,7.5C-10.002,7.224 -10.226,7 -10.502,7M-10.502,15L-11.502,15C-11.778,15 -12.002,15.224\n            -12.002,15.5L-12.002,16.5C-12.002,16.776 -11.778,17 -11.502,17L-10.502,17C-10.226,17 -10.002,16.776\n            -10.002,16.5L-10.002,15.5C-10.002,15.224 -10.226,15 -10.502,15M-10.002,11.5L-10.002,12.5C-10.002,12.776\n            -10.226,13 -10.502,13L-11.502,13C-11.778,13 -12.002,12.776 -12.002,12.5L-12.002,11.5C-12.002,11.224\n            -11.778,11 -11.502,11L-10.502,11C-10.226,11 -10.002,11.224 -10.002,11.5" />\n        </g>\n      </g>\n    </svg>',clock:'\n    <svg viewBox="0 0 9 9">\n      <path d="M4.5 7.9a3.4 3.4 0 1 1 0-6.8 3.4 3.4 0 0 1 0 6.8m2-5V3L5.2 4.3v.2c0 .4-.3.8-.7.8-.3 0-.5-.2-.7-.4h-1l-.2-.2v-.4l.2-.2h1c.2-.2.4-.4.7-.4h.2l1.3-1h.3l.3.2ZM4.5 0a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9"/>\n    </svg>',asterisk:'\n    <svg height="24px" width="24px" viewBox="0 -960 960 960">\n      <path d="M440-120v-264L254-197l-57-57 187-186H120v-80h264L197-706l57-57 186 187v-264h80v264l186-187 57 57-187 186h264v80H576l187 186-57 57-186-187v264h-80Z"/>\n    </svg>\n  '};e.A=r},7558:function(t,e,n){"use strict";n.d(e,{G:function(){return f}});var r=n(92901),i=n(23029),o=(n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(51786)),u=n(74692),a=n(71725),s=n(87542),c=(n(7642),n(39848)),l=o.observable((0,c.Yn)());u(document).on("routeChange",function(t,e){return l(e)});var f=(0,r.A)(function t(e,n,r,u,c,f){var p=this;(0,i.A)(this,t),this.path=(0,s.oI)(e),this.enabled=(0,s.oI)(n),this.label=(0,s.oI)(r),this.iconHtml=u,this.tooltipText=c,this.decoratorContent=o.pureComputed(function(){if(f){var t=f();return t>99?a.A.asterisk:t}}),this.decoratorContentClass=o.pureComputed(function(){if(f){var t=f();return t<10?"one-char":t<100?"two-char":""}}),this.selected=o.pureComputed(function(){return new RegExp("^".concat(p.path())).test(l())})});o.components.register("main-menu",{viewModel:function(t){return{items:t.items}},template:'\n    {{#foreach items}}\n      {{#if enabled}}
1\n        <menu-item data-bind="css: {sel: selected}">\n          <a data-bind="goto: {path: path}, removeWhitespace: true">\n            {{#if iconHtml}}\n              <item-icon>{{{iconHtml}}}</item-icon>\n            {{/if}}\n            {{#if label}}\n              <item-label>{{label}}</item-label>\n            {{/if}}\n            {{#if decoratorContent}}\n              <item-decorator data-bind="class: decoratorContentClass">\n                <div>{{{decoratorContent}}}</div>\n              </item-decorator>\n            {{/if}}\n          </a>\n          {{#if tooltipText}}\n            <div data-bind="tooltip: {position: \'below\', mouseOpenDelay: 500}">{{tooltipText}}</div>\n          {{/if}}\n        </menu-item>\n      {{/if}}\n    {{/foreach}}'})},99746:function(t,e,n){"use strict";var r=n(74692);n(48927);r.cloudinary.config({cloud_name:window.cloudinaryCloudName,secure:!0})},15879:function(t,e,n){"use strict";n.d(e,{t:function(){return u}});var r=n(74692),i=(n(99746),n.p+"4126753ff6659ae1ef4e.png"),o=n.p+"edb61ee436661e68af27.png";function u(t,e,n,u){if(u||(u=100),!e)return n?i:o;var a=e.split(":");return"1"===a[0]?r.cloudinary.url(a[1],{secure:!0,type:"facebook",width:u,height:u,crop:"fill"}):"2"===a[0]?r.cloudinary.url(t,{secure:!0,format:"png",version:a[1],width:u,height:u,crop:"fill",gravity:"face"}):void 0}},30442:function(t,e,n){"use strict";n.d(e,{O:function(){return g}});var r=n(27051),i=(n(28706),n(50113),n(62062),n(44114),n(18111),n(20116),n(7588),n(61701),n(26099),n(23500),n(51786)),o=n(74692),u=n(71725),a=(n(59039),n(23029)),c=n(92901),l=n(15361),f=n(6899),p=(n(13579),n(87583)),d=n(87542),h=n(85152),v=n(31887),y=n(53040),m=n(25583);i.components.register("user-settings",{viewModel:function(t){var e={checkingEmailAddress:i.observable(!0),emailAddress:i.observable()};h.A.getEmailAddress(function(t){return e.checkingEmailAddress(!1),e.emailAddress(t.emailAddress)});var n={optedOut:i.observable(),submitting:i.observable()},r=function(){return n.optedOut(s.m.user().dontAnonymize())};r(),n.optedOut.subscribe(function(t){return m.A.anonOptOut(t,n.submitting,function(){return s.m.user().dontAnonymize(t)},r)});var u=new(function(t){function e(){var t;return(0,a.A)(this,e),(t=(0,f.A)(this,e)).submit=t.submit.bind(t),t.success=t.success.bind(t),t.failure=t.failure.bind(t),t.initPasswordField({repeat:!0}),t.submitting=i.observable(),t.submitError=i.observable(),t.currentPassword=i.observable(),t.currentPasswordError=i.observable(),t.checkingHasPassword=i.observable(!0),t.hasPassword=i.observable(),m.A.getHasPassword(function(e){return t.checkingHasPassword(!1),t.hasPassword(e.hasPassword)}),t.submitEnabled=i.pureComputed(function(){return(!t.hasPassword()||Boolean(t.currentPassword()))&&t.passwordIsValid()&&t.password2IsValid()&&!t.currentPasswordError()&&!t.submitError()&&!t.submitting()}),t.currentPassword.subscribe(function(){t.currentPasswordError(void 0),t.submitError(!1)}),t.password.subscribe(function(){return t.submitError(!1)}),t.password2.subscribe(function(){return t.submitError(!1)}),t.done=i.observable(),t}return(0,l.A)(e,t),(0,c.A)(e,[{key:"submit",value:function(){if(this.passwordValidationSuspended(!1),this.password2ValidationSuspended(!1),this.submitEnabled())return this.submitting(!0),m.A.changePassword(this.currentPassword(),this.password(),this.success,this.failure)}},{key:"success",value:function(){return this.submitting(!1),this.currentPassword(void 0),this.password(void 0),this.password2(void 0),this.done(!0)}},{key:"failure",value:function(t){this.submitting(!1);var e=t.responseJSON;if(null!=e&&e.failures){var n=e.failures.some(function(t){return"currentPassword"===t.field&&"incorrect"===t.fieldCode});if(n)return this.currentPasswordError("The current password you entered is incorrect."),!1;var r=e.failures.some(function(t){return"currentPassword"===t.field&&"tooManyAttempts"===t.fieldCode});return r?(this.currentPasswordError("There have been too many incorrect attempts. Please wait five minutes and try again."),!1):(this.submitError("<p>Please correct the errors above and try again.</p>"),!1)}}}])}(v.O)),b={checking:i.observable(!0),name:i.observable()};m.A.getConnectedOAuthService(function(t){switch(b.checking(!1),t.service){case 1:return b.name("Facebook");case 2:return b.name("Microsoft");default:return b.name("")}});var g={updating:i.observable(),checked:i.observable(s.m.user().highContrast())},w=i.observable(!0),_=i.observable();m.A.getUserHasMfaEnabled(function(t){w(!1),_(t.success)});var C,k=(0,d.oI)(t.isSchoolStaff),O=i.pureComputed(function(){var t=w(),e=_(),n=k();return!t&&!e&&n}),S=i.observable(),A=i.observable();var E=i.observable(),j=i.observable(),P=i.observable();return g.checked.subscribe(function(t){m.A.setHighContrast(t,g.updating,function(){s.m.user().highContrast(t)},function(){g.checked(s.m.user().highContrast())})}
1),{gotoDetails:function(){return(0,y.Q)(),o(document).trigger("goto",["/edit/parent"])},emailChange:e,anonOptOut:n,pwChange:u,oAuth:b,highContrast:g,checkingHasMfa:w,userHasMfaEnabled:_,showMfaOption:O,addMfa:function(){m.A.getMfaEnrolmentUri(function(t){C=t,p.toDataURL(t.qrCodeUrl).then(function(t){S(t)})})},mfaDataUri:S,mfaCode:A,mfaSubmit:function(){j(!1),P(!1),m.A.enrolMfa(C.secret.secret,A(),function(t){t.success?(j(!0),S(null),A(null)):P(!0)},E)},mfaSubmitInProgress:E,mfaEnrolmentSucceeded:j,mfaEnrolmentFailed:P}},template:'\n  <div class="setting">\n    <div class="title">Personal Details</div>\n    <div class="settingBody">\n      You can update your name, profile picture and other personal details,\n      as well as updating your children’s details, <a data-bind="click: gotoDetails">here</a>.\n    </div>\n  </div>\n  <div class="setting" data-bind="with: emailChange">\n    <div class="title">Email Address</div>\n    <div class="settingBody">\n      <div data-bind="ifnot: checkingEmailAddress">\n        <div data-bind="ifnot: emailAddress">\n          <p>No email address on file.</p>\n          <p data-bind="ifnot: $parent.oAuth.checking">\n            If you’d like to be able to receive email reminders from Studybugs, or to log in without needing access to\n            {{$parent.oAuth.name}}, please contact <a href="mailto:{{s.c.supportEmail}}">{{s.c.supportEmail}}</a>.\n          </p>\n        </div>\n        <div data-bind="if: emailAddress">\n          <span class="email" data-bind="text: emailAddress"></span>\n          <p class="note">If you need to change the email address you have registered with Studybugs, please contact\n            <a href="mailto:{{s.c.supportEmail}}">{{s.c.supportEmail}}</a>.</p>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div class="setting" data-bind="with: pwChange">\n    <div class="title">Password</div>\n    <div class="settingBody">\n      <form data-bind="ifnot: checkingHasPassword">\n        <div data-bind="ifnot: hasPassword">\n          <p class="prompt">You haven’t yet set a password for Studybugs.  Setting one enables\n            you to sign in without using {{$parent.oAuth.name}} (useful if {{$parent.oAuth.name}} access is blocked\n            where you are).\n          </p>\n        </div>\n        <ul>\n          <li data-bind="if: hasPassword">\n            <span class="label">Your Current Password</span>\n            <div class="textInput">\n              <div class="dots"></div>\n              <input type="password" autocomplete="current-password" aria-label="Current password" data-bind="value: currentPassword, valueUpdate: [\'afterkeydown\',\'input\']"></input>\n            </div>\n            <span data-bind="if: currentPasswordError">\n              <span class="error">\n                <span data-bind="text: currentPasswordError"></span>\n              </span>\n            </span>\n          </li>\n          <li>\n            <span class="label">Your New Password</span>\n            <div class="textInput">\n              <div class="dots"></div>\n              <input type="password" autocomplete="new-password" aria-label="New password" data-bind="value: password, valueUpdate: [\'afterkeydown\',\'input\'], hasFocus: passwordHasFocus"></input>\n            </div>\n            <span data-bind="ifnot: passwordValidationSuspended">\n              <span class="error" data-bind="ifnot: passwordIsValid">\n                <span data-bind="text: passwordValidationMessage"></span>\n              </span>\n            </span>\n            <span class="label">…and again</span>\n            <div class="textInput">\n              <div class="dots"></div>\n              <input type="password" autocomplete="new-password" aria-label="Repeat new password" data-bind="value: password2, valueUpdate: [\'afterkeydown\',\'input\'], hasFocus: password2HasFocus"></input>\n            </div>\n            <span data-bind="ifnot: password2ValidationSuspended">\n              <span class="error" data-bind="ifnot: password2IsValid">\n                <span data-bind="text: password2ValidationMessage"></span>\n              </span>\n            </span>\n          </li>\n        </ul>\n        <div class="termsAndSubmit">\n          <input type="submit" class="button button-primary"\n            data-bind="click: submit, enable: submitEnabled" value="Set Password">\n          <div data-bind="if: submitError"><span data-bind="html: submitError"></span></div>\n          <div data-bind="if: done"><p>Your password has been changed.</p></div>\n        </div>\n      </form>\n    </div>\n  </div>\n  {{#ifnot checkingHasMfa}}\n  <div class="setting mfa">\n    <div class="title">Two-Factor Authentication</div>\n    <div class="settingBody">\n      {{#if userHasMfaEnabled}}\n        <p>Two-factor authentication is set up for your Studybugs account.\n          If you’d like to change this, please contact <a href="mailto:{{s.c.supportEmail}}">{{s.c.supportEmail}}</a>.\n        </p>\n      {{/if}}\n      {{#if !userHasMfaEnabled() && !mfaEnrolmentSucceeded()}}\n        <p data-bind="ifnot: mfaDataUri"><a data-bind="click: addMfa">Add two-factor authentication</a> to your\n          Studybugs account.</p>\n        {{#if mfaDataUri}}\n          <p>Scan this QR code with your authenticator app (eg Google Authenticator, Microsoft Authenticator, Authy),\n            then enter the security code it gives you below.</p>\n          <img data-bind="if: mfaDataUri, attr: { src: mfaDataUri }" alt="QR code for setting up 2FA"/>\n          <form><ul><li>
1\n            <span class="label">Security Code</span>\n            <div class="textInput">\n              <div class="dots"></div>\n              <input type="text" data-bind="value: mfaCode"></input>\n            </div>\n            <div>\n              <input type="submit" class="button button-primary"\n                     data-bind="click: mfaSubmit, enable: !mfaSubmitInProgress()"\n                     value="Complete Setup"></input>\n              <div data-bind="if: mfaEnrolmentFailed">\n                <span class="error">There was a problem adding two-factor authentication to your account - please try\n                  again.</span>\n              </div>\n            </div\n          </li></ul></form>\n        {{/if}}\n      {{/ifnot}}\n      {{#if mfaEnrolmentSucceeded}}\n        <p>Done! Two-factor authentication has been added to your Studybugs account.\n          You’ll need to use two-factor authentication next time you sign in.</p>\n      {{/if}}\n    </div>\n  </div>\n  {{/ifnot}}\n  <div class="setting" data-bind="with: anonOptOut">\n    <div class="title">Anonymisation</div>\n    <div class="settingBody">\n      <p>Studybugs tracks how diseases spread geographically, so we can help schools\n        and public health organisations fight the spread of disease.  We do this by sharing anonymised\n        data on the symptoms and illnesses that people report.  If you’re not happy with your reports being\n        shared anonymously in this way, you can opt out by checking the box below.</p>\n      <input id="anonOptOut" type="checkbox" data-bind="checked: optedOut">\n      <label for="anonOptOut">Disable anonymisation of sick reports I post on Studybugs</label>\n    </div>\n  </div>\n  <div class="setting" data-bind="with: highContrast">\n    <div class="title">Accessibility</div>\n    <div class="settingBody">\n      <input id="highContrast" type="checkbox" data-bind="checked: checked, enable: !updating()">\n      <label for="highContrast">Use a higher contrast theme.</label>\n    </div>\n  </div>'});var b="open-settings";function g(t){o(document).trigger(b,t)}var w=[{label:"Your Account"}];i.components.register("settings",{viewModel:function(){var t=i.observable(),e=i.observable(),n=i.pureComputed(function(){var t,n,o=null===(t=(n=s.m).mySchools)||void 0===t?void 0:t.call(n),u=[].concat(w);return o&&o.forEach(function(t){u.push({id:t.id,label:t.shortName})}),u.map(function(t){return(0,r.A)((0,r.A)({},t),{},{selected:i.pureComputed(function(){return e()===t.id}),select:function(){return e(t.id)}})})}),a=i.pureComputed(function(){var t,n,r=e(),i=null===(t=(n=s.m).mySchools)||void 0===t?void 0:t.call(n),o=null==i?void 0:i.find(function(t){return t.id===r});if(o)return{id:o.id,shortName:o.shortName,attendanceEnabled:o.addOns.attendance,registersEnabled:o.addOns.registers,messagesEnabled:o.addOns.messages,licenceState:o.licenceState}}),c=function(n,r){setTimeout(function(){t(!0),e(r)},1)};o(document).on(b,c);return{isOpen:t,selectedSectionId:e,sections:n,selectedSchool:a,settingsIcon:u.A.settings,dialogHeight:function(t,e){return.8*e},dispose:function(){return o(document).off(b,c)}}},template:'\n    <div class="settings" data-bind="popover: {dim: true, isModal: true, noLabel: true, open: isOpen}">\n    {{#if isOpen}}\n      <div data-bind="autoHeight: {height: dialogHeight}">\n        <div class="popoverTitle">{{{settingsIcon}}} Settings</div>\n        <section-menu data-bind="foreach: sections">\n          <a data-bind="click: select, css: {sel: selected}">{{label}}</a>\n        </section-menu>\n        <section-body>\n          <div>\n            {{#ifnot selectedSchool}}\n              <user-settings params:"isSchoolStaff: sections().length > 1"></user-settings>\n            {{/if}}\n            {{#if selectedSchool}}\n              <school-settings params="school: selectedSchool"></school-settings>\n            {{/if}}\n          </div>\n        </section-body>\n      </div>\n    {{/if}}\n  </div>'})},25583:function(t,e,n){"use strict";n(60739),n(33110);var r=n(24681),i=n(29846);e.A={changePassword:function(t,e,n,o){r.A.post({errorMessage:"Sorry, we couldn’t change your password",url:"".concat(i.F.path,"/user/account/changepw"),data:JSON.stringify({currentPassword:t,newPassword:e}),success:n,failure:o})},getHasPassword:function(t,e){r.A.get({url:"".concat(i.F.path,"/user/account/haspw"),success:t,failure:e})},anonOptOut:function(t,e,n,o){r.A.post({url:"".concat(i.F.path,"/user/settings/anonymization/optout"),data:JSON.stringify({optOut:t}),inProgress:e,success:n,failure:o})},getConnectedOAuthService:function(t,e){r.A.get({url:"".concat(i.F.path,"/user/account/oauthservice"),success:t,failure:e})},getMySchools:function(t,e){r.A.get({url:"".concat(i.F.path,"/user/myschools"),success:t,failure:e})}
1,dismissAnnouncement:function(t,e){r.A.post({url:"".concat(i.F.path,"/user/settings/announcement/dismiss"),inProgress:e,success:t})},setHighContrast:function(t,e,n){r.A.post({url:"".concat(i.F.path,"/user/settings/accessibility/highcontrast"),inProgress:e,success:n,data:JSON.stringify({enabled:t})})},getUserHasMfaEnabled:function(t,e,n){r.A.get({url:"".concat(i.F.path,"/user/mfa/enabled"),success:t,inProgress:e,failure:n})},getMfaEnrolmentUri:function(t,e,n){r.A.get({url:"".concat(i.F.path,"/user/mfa/generate"),success:t,inProgress:e,failure:n})},enrolMfa:function(t,e,n,o,u){r.A.post({url:"".concat(i.F.path,"/user/mfa/enrol"),data:JSON.stringify({totpSecret:t,totpCode:e}),success:n,inProgress:o,failure:u})}}},94988:function(t,e,n){"use strict";n(50113),n(18111),n(20116),n(26099),n(27495),n(90906);var r=n(74692);r.fn.highlight=function(t){function e(t,n){var r=0;if(3==t.nodeType){var i=t.data.toUpperCase().indexOf(n);if(i>=0){var o=document.createElement("span");o.className="highlight";var u=t.splitText(i),a=(u.splitText(n.length),u.cloneNode(!0));o.appendChild(a),u.parentNode.replaceChild(o,u),r=1}}else if(1==t.nodeType&&t.childNodes&&!/(script|style)/i.test(t.tagName))for(var s=0;s<t.childNodes.length;++s)s+=e(t.childNodes[s],n);return r}return this.length&&t&&t.length?this.each(function(){e(this,t.toUpperCase())}):this},r.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName,this.parentNode.replaceChild(this.firstChild,this),this.parentNode.normalize()}).end()}},28150:function(t,e,n){"use strict";n.d(e,{A:function(){return a},k:function(){return u}});var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;var i=function(t){return"string"==typeof t&&r.test(t)};const o=[];for(let t=0;t<256;++t)o.push((t+256).toString(16).slice(1));function u(t,e=0){return(o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]).toLowerCase()}var a=function(t,e=0){const n=u(t,e);if(!i(n))throw TypeError("Stringified UUID is invalid");return n}}}]);

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.