!function(){"use strict";function e(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,a)}s((r=r.apply(e,t||[])).next())}))}let t;const n=n=>e(void 0,void 0,void 0,(function*(){if(t)return Promise.resolve(t);const e=yield(e=>(e=>e.top!==e.self)(e)?Promise.resolve(e):new Promise((t=>{try{const n=e.document.createElement("iframe");n.src="about:blank",n.style.display="none";const r=()=>{e.document.body.appendChild(n),t(n.contentWindow)};"interactive"===document.readyState||"complete"===document.readyState?r():document.addEventListener("DOMContentLoaded",(()=>{r()}))}catch(e){t(null)}})))(n);if(!e)return Promise.reject("iframe window for datadog is null");return new Promise(((n,r)=>{const o=window.frameElement&&window.top?window.top.document:document,i=e.document.createElement("script");i.async=!0,i.src="https://www.datadoghq-browser-agent.com/datadog-logs-v4.js",i.onload=()=>{(e=>"DD_LOGS"in e)(e)?e.DD_LOGS.onReady((()=>{e.DD_LOGS.init({clientToken:"pubf9159ed47a5e0d4d8ca1f19377f88a35",site:"datadoghq.com",service:"fluct-one",forwardErrorsToLogs:!1,version:"06b79a4",env:"prod",beforeSend:e=>(e.view.url=o.location.href,e.view.referrer=o.referrer,!0)}),t=e.DD_LOGS,n(t)})):r("DD_LOGS is not found in iframe window")},i.onerror=()=>{r("error occurred while loading datadog script")},e.document.head.appendChild(i)}))}));function r(e){return{message:e.message,name:e.name,description:e.description,number:e.number,fileName:e.fileName||e.sourceURL,lineNumber:e.lineNumber||e.line,columnNumber:e.columnNumber,stack:e.stack}}const o=new class{constructor(){this.isDebugMode=!1,this.context={}}setDebugMode(e){this.isDebugMode=e}setContextProperty(e,t){this.context=Object.assign(Object.assign({},this.context),{[e]:t})}error(e,t,n=100){this.log("error",e,t,n)}warn(e,t,n=100){this.log("warn",e,t,n)}info(e,t,n=100){this.log("info",e,t,n)}debug(e,t,n=100){this.log("debug",e,t,n)}log(e,t,n,o){let i=n instanceof Error?r(n):n;i=Object.assign(Object.assign({},this.context),i);const c=o;this.sendToConsole(e,t,i),100*Math.random(){n.logger.log(t,r,e)})).catch((e=>{console.error("Failed to send logs to Datadog:",e)}))}sendToConsole(e,t,n){("error"===e||this.isDebugMode)&&console[e]("%c [fluct-one]:","background-color: lightblue; color: black;",t,n)}},i=function(e,t){if("regexp"===e.type)try{const n=new RegExp(e.value);return null!==t.match(n)}catch(t){return o.logWithError(t,"error",`Invalid regexp pattern: ${e.value}.`,{pattern:e}),!1}return t.includes(e.value)};class c{constructor(e,t){this.params=e,this.url=t}check(){if(0===this.params.patterns.length)return!0;return!!this.params.patterns.find((e=>i(e,this.url)))}}class a{constructor(e,t){this.params=e,this.url=t}check(){if(0===this.params.patterns.length)return!0;return!this.params.patterns.find((e=>i(e,this.url)))}}class s{constructor(e,t){this.params=e,this.referrer=t}check(){if(0===this.params.patterns.length)return!0;return!!this.params.patterns.find((e=>i(e,this.referrer)))}}class d{constructor(e,t){this.params=e,this.referrer=t}check(){if(0===this.params.patterns.length)return!0;return!this.params.patterns.find((e=>i(e,this.referrer)))}}const u="android",l="ios";class h{constructor(e,t){this.params=e,this.ua=t}check(){let e="unknown";return/android/i.test(this.ua)&&(e=u),/iP(hone|(o|a)d)/.test(this.ua)&&(e=l),"unknown"!==e&&((e!==u||this.params.kind===u)&&(e!==l||this.params.kind===l))}}class p{constructor(e,t){this.params=e,this.ua=t}check(){const e=!!this.ua.match(/iPhone|Android.+Mobile/);return(!e||"pc"!==this.params.kind)&&!(!e&&"sp"===this.params.kind)}}class m{constructor(e,t,n,r){this.params=e,this.referrer=t,this.url=n,this.host=r}check(){var e;return this.params.displayable===function(e,t,n,r){if(!t.match(r))return!1;if(e.find((e=>i(e,n))))return!1;return!0}(null!==(e=this.params.excludePatterns)&&void 0!==e?e:[],this.referrer,this.url,this.host)}}class f{constructor(e){this.params=e}check(){const e=this.params.funcitonText,t=this.stringToFunction(e);if(!t)return!1;try{const n=t();return"boolean"!=typeof n?(o.error("customFunction: Function must return boolean",{functionText:e}),!1):n}catch(e){throw new Error(`customFunction: Failed to execute function. Error occurred. ${e}`)}}stringToFunction(e){try{const t=Function("return ("+e+")")();return"function"!=typeof t?(o.error("customFunction: Failed to convert string to function. not",{functionString:e}),null):t}catch(e){throw new Error(`customFunction: Failed to convert string to function. Error occurred. ${e}`)}}}function g(e,t={referrer:document.referrer,url:location.href,host:location.host,ua:navigator.userAgent}){const n=function(e,t){const n=[];return e.url&&n.push(new c(e.url,t.url)),e.excludeUrl&&n.push(new a(e.excludeUrl,t.url)),e.referrer&&n.push(new s(e.referrer,t.referrer)),e.excludeReferrer&&n.push(new d(e.excludeReferrer,t.referrer)),e.os&&n.push(new h(e.os,t.ua)),e.device&&n.push(new p(e.device,t.ua)),e.yda&&n.push(new m(e.yda,t.referrer,t.url,t.host)),e.customFunction&&n.push(new f(e.customFunction)),n}(e,t);for(const r of n)try{if(!r.check())return!1}catch(n){return o.logWithError(n,"error","error occurred in trigger checker",{condition:e,context:t}),!1}return!0}function v(e){const t=e.components,n=function(e){const t=e.reduce(((e,t)=>e+t),0);let n=Math.random()*t;for(let t=0;te.weight)));return null!==n?t[n]:null}function w(t,n=document){y(n)?document.write(t):function(t,n){e(this,void 0,void 0,(function*(){var e,r,o,i;void 0===n&&(n=null!==(e=document.body)&&void 0!==e?e:document.head);const c=(new DOMParser).parseFromString(t,"text/html"),a=null===(r=c.head)||void 0===r?void 0:r.children,s=null===(o=c.body)||void 0===o?void 0:o.children,d=new Uint32Array(1),u="boot-target-script-"+window.crypto.getRandomValues(d)[0];Array.prototype.forEach.call(c.getElementsByTagName("script"),(e=>{e.className=u}));const l=n;if(Array.prototype.forEach.call(a,(e=>{var t;const r=e.cloneNode(!0);null===(t=n.parentNode)||void 0===t||t.insertBefore(r,n.nextSibling),n=r})),n=l,Array.prototype.forEach.call(s,(e=>{var t;const r=e.cloneNode(!0);null===(t=n.parentNode)||void 0===t||t.insertBefore(r,n.nextSibling),n=r})),null==(null==n?void 0:n.parentNode))try{const e=10,t=100;yield function(e,t,n){return new Promise(((r,o)=>{let i=0;const c=setInterval((()=>{null!=(null==e?void 0:e.parentNode)?(clearInterval(c),r()):++i>=t&&(clearInterval(c),o(new Error("targetDOM.parentNode is null.")))}),n)}))}(n,e,t)}catch(e){throw e instanceof Error?new Error(`${e.message} targetDOM: ${n} scriptClassName: ${u}`):new Error(`error ${e}. targetDOM: ${n} scriptClassName: ${u}`)}const h=Array.prototype.slice.call(null===(i=n.parentNode)||void 0===i?void 0:i.getElementsByClassName(u)),p=[];h.forEach((e=>{const t=self.document.createElement("script");for(let n=0;n{var t;const n=e.s,r=e.original;null===(t=r.parentNode)||void 0===t||t.replaceChild(n,r)}))}))}(t,n.currentScript)}function y(e){const t=!e.currentScript.async,n=!!e.write.prototype;return o.setContextProperty("bootType",t||n?"documentWrite":"AsyncBoot"),t||n}function b(e){const t=new URL(document.location.href);return t.searchParams?t.searchParams.get(e):null}const _={site:{id:"faaf5f85-0a32-4a70-ab0e-3b9ee935ba9d",name:"株式会社エブリー|DELISH KITCHEN",siteCode:"delishkitchen",triggers:[{id:"65b11348-06b3-410a-8ccc-36c85677042d",title:"seglinks",condition:{},weightedParents:[{id:"683c6806-5917-4c58-a14c-ea75e4289239",title:"新しい比率出し分け親",components:[{id:"d3494242-1ebc-479f-be03-177ed293e9e8",title:"タグ名(仮)",tagText:'