/* growform client2 bundle.url: https://assets.growform.co/df322d5-mhjegkpe/form.bundle.js resolve.source: kv resolve.at: 2025-11-04T10:53:10.497Z form.source: api cache.age_ms: 0 kv.value_present: true fallback_used: false */ ;(function () { var EMBED_TYPE = "iFrame"; var FORM_ID = "667586994ad87c000bd84cad"; var FORM_BUNDLE_URL = "https://assets.growform.co/df322d5-mhjegkpe/form.bundle.js"; // injected by worker (KV/memory/fallback) var FORM_DATA = {"data":{"form":{"_id":"667586994ad87c000bd84cad","steps":[{"id":"c70d610288df03d719dc57e3","name":"Product Type","sortOrder":1},{"id":"5069b7836f9d767d6cd90c64","name":"Payment","sortOrder":2,"copyOf":"c70d610288df03d719dc57e3"},{"id":"58addba23985225d50e4c170","name":"Income Details","sortOrder":3},{"id":"75d3fe3f71610bd594e35998","name":"Trade","sortOrder":4,"copyOf":"5069b7836f9d767d6cd90c64"},{"id":"b012215666308047166e4c10","name":"DOB","sortOrder":5},{"id":"6b99baeaf0e86b908ca3faea","name":"Address","sortOrder":6},{"id":"9a138eda87d357c1abb83650","name":"Details","sortOrder":7},{"id":"bd71f30623d2711d8624e64b","name":"Confirm","sortOrder":8}],"formName":"Summit - Application","fields":{"decorative paragraph_725485387289275":{"type":"Decorative Paragraph","value":"Ready to shop with Summit?","width":12,"step":6,"sortOrder":1,"fieldStyle":{"fontSize":{"unit":"px","value":14},"textDecoration":"None","fontStyle":"Normal","fontWeight":"Bold"},"stepId":"9a138eda87d357c1abb83650"},"text_576692390099896":{"type":"Text","label":"First Name","width":6,"step":6,"sortOrder":2,"validationRules":{"required":true},"multiline":false,"rows":2,"rowsMax":2,"stepId":"9a138eda87d357c1abb83650"},"decorative paragraph_799257360840766":{"type":"Decorative Paragraph","value":"","width":12,"step":"complete","sortOrder":1,"stepId":"complete"},"text_502904043080560":{"type":"Text","label":"Last Name","width":6,"step":6,"sortOrder":3,"validationRules":{"required":true},"stepId":"9a138eda87d357c1abb83650"},"phone_924735026563525":{"type":"Phone","label":"Confirm your mobile number","width":12,"step":7,"sortOrder":2,"defaultCountryFormat":"ca","stepId":"bd71f30623d2711d8624e64b"},"decorative header_970404668386153":{"type":"Decorative Header","value":"You're almost done! Confirm your number.","width":12,"step":7,"sortOrder":1,"fieldStyle":{"fontSize":{"value":14,"unit":"px"},"fontWeight":"bold"},"stepId":"bd71f30623d2711d8624e64b"},"buttons_986137671516711":{"type":"Buttons","validationRules":{"required":true},"label":"What are you searching for? ","width":12,"multiple":false,"buttonStyle":{"buttonsPerRow":"2","height":123,"buttonsType":"Square","sq_buttonsPerRow":"2","sq_buttonsPerRowMobile":"1","spacing":10},"options":[{"text":"ATV or Side-by-Side","id":"91b511bce6485ced063a37f3","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1718979120/uploads/unrvlxj6lbe56nkfitbe.png"},{"text":"Dirt Bike","id":"d39d131838881f3c680e8b11","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1718979147/uploads/tfck4ygkmg84xj3uy8gx.avif"},{"text":"RV or Trailer","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1718979124/uploads/sbuyb4vrfosb7lpfui87.jpg","id":"c9c34dcf010b90cfc01d33d3"},{"text":"Marine","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1718979078/uploads/dwswejdfp0ccecwelqlz.png","id":"f2491ddefd69d98035f5f0e2"},{"text":"Motorcycle","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1718979184/uploads/mn9erumji8gk88smjahc.jpg","id":"fa5c5779bdd653906ac5b420"},{"text":"Vehicle","image":"https://res.cloudinary.com/dqnjggegp/image/upload/v1718979292/uploads/qfiw5crwtv0af2sabgxp.jpg","id":"77241fe0d8995baf9e5fe3cf"}],"stepId":"c70d610288df03d719dc57e3","sortOrder":1,"hideLabel":false,"imageStyles":{"width":108,"size":"75%","rt_width":67}},"decorative_header_713445117951684":{"type":"Decorative Header","value":"Search for your complete address.","width":12,"sortOrder":1,"stepId":"6b99baeaf0e86b908ca3faea","fieldStyle":{"fontSize":{"value":14,"unit":"px"},"textAlign":"Left"}},"address_623563837476200":{"type":"Address","label":"Street Address","width":12,"stepId":"6b99baeaf0e86b908ca3faea","sortOrder":2,"validationRules":{"required":true}},"buttons_272373865753293":{"type":"Buttons","validationRules":{"required":true},"label":"What is your monthly budget?","width":12,"multiple":false,"buttonStyle":{"buttonsPerRow":"1","height":"50","buttonsType":"Rectangle","sq_buttonsPerRow":"2","rt_buttonsPerRow":"2"},"options":[{"text":"under $500/m","id":"fdf2fecc5ac0152b4556e761"},{"text":"between $500 - $700/m","id":"91b511bce6485ced063a37f3"},{"text":"between $700 - $900/m","id":"d39d131838881f3c680e8b11"},{"text":"over $900/m","image":null,"id":"c9c34dcf010b90cfc01d33d3"}],"stepId":"5069b7836f9d767d6cd90c64","sortOrder":1,"hideLabel":false},"buttons_302195021886034":{"type":"Buttons","validationRules":{"required":true},"label":"Do you have a Trade-in?","width":12,"multiple":false,"buttonStyle":{"buttonsPerRow":1,"height":"50","buttonsType":"Rectangle","rt_buttonsPerRow":"2"},"options":[{"text":"Yes, I have a Trade","id":"fdf2fecc5ac0152b4556e761"},{"text":"No, I don't have a Trade","id":"91b511bce6485ced063a37f3"}],"stepId":"75d3fe3f71610bd594e35998","sortOrder":1,"hideLabel":false},"decorative_paragraph_884016148923487":{"type":"Decorative Paragraph","value":"By clicking \"Pick a Vehicle,\" I confirm my agreement to the General Terms of Service and Privacy Policy my consent to Summit Powersports, their partners and lenders obtaining credit reports about me to facilitate my application for a car loan. By providing your personal information, you consent to receiving communications from us, including SMS messages. If you do not agree with our policy or do not wish to receive SMS messages, please do not use our services or contact us to update your communication preferences.\n\n\n","width":12,"stepId":"bd71f30623d2711d8624e64b","sortOrder":3,"fieldStyle":{"textAlign":"Left","fontSize":{"value":10,"unit":"px"}}},"decorative_header_296123852995139":{"type":"Decorative Header","value":"What is your Date of Birth?","width":12,"stepId":"b012215666308047166e4c10","sortOrder":1,"fieldStyle":{"textAlign":"Left","fontSize":{"value":14,"unit":"px"}}},"decorative_paragraph_428506747291287":{"type":"Decorative Paragraph","value":"Please confirm your Full Address. If you can't find your address, simply enter your address manually.","width":12,"stepId":"6b99baeaf0e86b908ca3faea","sortOrder":5,"fieldStyle":{"textAlign":"Left"}},"single_select_101808761464405":{"type":"Single Select","width":3,"label":"Month","options":[{"text":"January","id":"0a7b440f8e8664b32b07bf8d"},{"text":"February","id":"fce998b52abfffd3cf4bc25e"},{"text":"March","id":"210b80a7ced252c215d9e7e2"},{"text":"April","image":null,"id":"9849748e7833e06facf43a4e"},{"text":"May","image":null,"id":"869774f59ba552961f1d64fb"},{"text":"June","image":null,"id":"dcdf4a26ab1921e0645d21b4"},{"text":"July","image":null,"id":"8542d173a7aa55827030ff71"},{"text":"August","image":null,"id":"7adf610b685418484c611630"},{"text":"September","image":null,"id":"2d45be1570a43a3a5515fe47"},{"text":"October","image":null,"id":"031f08dbdf3c0109465c7afd"},{"text":"November","image":null,"id":"298f5fbd0623d0e2fb1b740d"},{"text":"December","image":null,"id":"fc6bb50022fd818a5e38b4c5"}],"helperText":null,"stepId":"b012215666308047166e4c10","sortOrder":2,"validationRules":{"required":true}},"single_select_366623808574018":{"type":"Single Select","width":3,"label":"Day","options":[{"text":"1","id":"0a7b440f8e8664b32b07bf8d"},{"text":"2","id":"fce998b52abfffd3cf4bc25e"},{"text":"3","id":"210b80a7ced252c215d9e7e2"},{"text":"4","image":null,"id":"bb0e0f70339dff097525dba7"},{"text":"5","image":null,"id":"412bf2a58db8627c5a059af3"},{"text":"6","image":null,"id":"70cd8edeba08c88f83ed47a8"},{"text":"7","image":null,"id":"2bc1ef0fbaf1b598fe4755f7"},{"text":"8","image":null,"id":"eef272c7180e74b1a7d7000f"},{"text":"9","image":null,"id":"8312ccb07a0c582017f7f975"},{"text":"10","image":null,"id":"766647983ec77672d64a422b"},{"text":"11","image":null,"id":"6787c25da21f0f407a4fa1e8"},{"text":"12","image":null,"id":"6a68501ca2365a1da7221f83"},{"text":"13","image":null,"id":"86cacf9cd1ca6057daddb4d6"},{"text":"14","image":null,"id":"9ec4ee9f4392b85e84a25bd1"},{"text":"15","image":null,"id":"e6134410030a73502eaf2856"},{"text":"16","image":null,"id":"e8ccda634344e0e85215d5d6"},{"text":"17","image":null,"id":"0412cdc9ebd6c87a007cd76e"},{"text":"18","image":null,"id":"37ae0f29a749575cfad286ae"},{"text":"19","image":null,"id":"3b1ad9a45aedf02cfdaa1426"},{"text":"20","image":null,"id":"02c8fea6c36d73429cb2b585"},{"text":"21","image":null,"id":"12664fb4d7a0b272e759f287"},{"text":"22","image":null,"id":"716d4b27a133b82165dae4e5"},{"text":"23","image":null,"id":"328f76d792e0dead30a662f2"},{"text":"24","image":null,"id":"f47b301c23a331bcf4b9ec64"},{"text":"25","image":null,"id":"8474accd86e2960e26635201"},{"text":"26","image":null,"id":"db08422ef99c8c2e1980723a"},{"text":"27","image":null,"id":"2054640032ef068c611ffada"},{"text":"28","image":null,"id":"826c148d83c8237342f3f2bd"},{"text":"29","image":null,"id":"fd5f3daea41e96c8b27289b7"},{"text":"30","image":null,"id":"376897d0c183bca24619de5c"},{"text":"31","image":null,"id":"eb2a7189acdb4c000d3a0143"}],"helperText":null,"stepId":"b012215666308047166e4c10","sortOrder":3,"validationRules":{"required":true}},"single_select_623029810153047":{"type":"Single Select","width":6,"label":"Year","options":[{"text":"2005","id":"0a7b440f8e8664b32b07bf8d"},{"text":"2004","id":"fce998b52abfffd3cf4bc25e"},{"text":"2003","id":"210b80a7ced252c215d9e7e2"},{"text":"2002","image":null,"id":"482af5f013a706f14fa94b71"},{"text":"2001","image":null,"id":"c9c389278c64ee65a33958fa"},{"text":"2000","image":null,"id":"2a5073d5c638a894807d06cb"},{"text":"1999","image":null,"id":"acfa596d95757894baf2a7c1"},{"text":"1998","image":null,"id":"004f33aff70a9e58d60affb1"},{"text":"1997","image":null,"id":"657c3057cdb0a28ad96ad203"},{"text":"1996","image":null,"id":"953b4c4197d9072a55af8a84"},{"text":"1995","image":null,"id":"64461ce107460866ad10f65c"},{"text":"1994","image":null,"id":"2d6ee2e4d3b2bc023fc4e04e"},{"text":"1993","image":null,"id":"cc0ddcd9c7c7019cc621d549"},{"text":"1992","image":null,"id":"b3ce8782a595a3b8008c7804"},{"text":"1991","image":null,"id":"cd784f8dd867aa6e49d83907"},{"text":"1990","image":null,"id":"9ab1c9f76d39c60b201eed55"},{"text":"1989","image":null,"id":"138b4a7cf0eac81dce5b0841"},{"text":"1988","image":null,"id":"61fd826c6c9d026c3d2d2519"},{"text":"1987","image":null,"id":"c5411c683eed85a6941a2e8e"},{"text":"1986","image":null,"id":"47877448075a2832d1f4a99c"},{"text":"1985","image":null,"id":"d150cd6f39b5555cd2468ebf"},{"text":"1984","image":null,"id":"5a70433ca853c740bd4d8939"},{"text":"1983","image":null,"id":"42bc339317faff0e7c0ba8fa"},{"text":"1982","image":null,"id":"615d2eacca4f8f7e308e4b42"},{"text":"1981","image":null,"id":"655169923ff64176141e6704"},{"text":"1980","image":null,"id":"ecd49484e2fce0dac62cd133"},{"text":"1979","image":null,"id":"dc400cdbd2d31e7004932d4a"},{"text":"1978","image":null,"id":"67e2401f3b265c0c1a095d5f"},{"text":"1977","image":null,"id":"31da8c6695c171c49e2c0b65"},{"text":"1976","image":null,"id":"3a6e7345b1359bf30fb7ef93"},{"text":"1975","image":null,"id":"85de42402aa91ff6336a53da"},{"text":"1974","image":null,"id":"057ba6fbd87954762e02221b"},{"text":"1973","image":null,"id":"ebebcaa38a0d3d3523a6542f"},{"text":"1972","image":null,"id":"a22262f588e4a09070082bbe"},{"text":"1971","image":null,"id":"95f66f962494030045524388"},{"text":"1970","image":null,"id":"7be0855d894a33e0a431c6e5"},{"text":"1969","image":null,"id":"4bdf907ce27d469c1ef8accf"},{"text":"1968","image":null,"id":"554434e1246a0ac3ea737283"},{"text":"1967","image":null,"id":"421a3fbfe507d28dbd9a33b6"},{"text":"1966","image":null,"id":"ee63a5316052fd4e030a5817"},{"text":"1965","image":null,"id":"92582a7104e4ee953dc8e413"},{"text":"1964","image":null,"id":"65cc0f0a84f3a752f767807b"},{"text":"1963","image":null,"id":"5398a5ae6286ce4dd6b0fb7e"},{"text":"1962","image":null,"id":"c8bbf7a5b01861daf0157a5a"},{"text":"1961","image":null,"id":"66ece186a811321463a09cac"},{"text":"1960","image":null,"id":"4ca14d7cd11b22f68e7b117a"},{"text":"1959","image":null,"id":"b7bf8a1ca8249fc8ce1f2be2"},{"text":"1958","image":null,"id":"7af1b2f51d06860c91853e09"},{"text":"1957","image":null,"id":"3d8ec495afa070e5bd8d4b6f"},{"text":"1956","image":null,"id":"f6e105a7d817c30961c82a5b"},{"text":"1955","image":null,"id":"18785e4e4a226c6d71d7d08e"},{"text":"1954","image":null,"id":"0be3bd813c511364ce48d70f"},{"text":"1953","image":null,"id":"042c7376e1ab3e7ed9ae686a"},{"text":"1952","image":null,"id":"ed77dc727d9552ebf761f79e"},{"text":"1951","image":null,"id":"afdc3a28c06775c1be0ae278"},{"text":"1950","image":null,"id":"91387e2f0b2a5a6b18d04e65"},{"text":"1949","image":null,"id":"9bae182baafaa2847cb69bdd"},{"text":"1948","image":null,"id":"eb93a756cea9e6fe4693cf96"},{"text":"1947","image":null,"id":"83bccdc95287cc3ab16091fb"},{"text":"1946","image":null,"id":"ae8e394cee223e64f3f9812d"},{"text":"1945","image":null,"id":"65236b7ca53df7b7ac58d3c2"},{"text":"1944","image":null,"id":"0c567489a7a6b424986c138b"},{"text":"1943","image":null,"id":"0e5a34b2a28f9fa80ff51cec"},{"text":"1942","image":null,"id":"e274aa3b2bb66c84a61ba2c5"},{"text":"1941","image":null,"id":"f9ef3228a12e369482001623"},{"text":"1940","image":null,"id":"a4940420815e2c31fd02131e"},{"text":"1939","image":null,"id":"e4f2c06784f1201436617c3b"},{"text":"1938","image":null,"id":"993db98eda0f53340bd03c1d"},{"text":"1937","image":null,"id":"7bd78a47cd36a252c7c9881b"},{"text":"1936","image":null,"id":"3074e842b3722aed6a22ae29"},{"text":"1935","image":null,"id":"5cef09a95ed1e944db4e1164"},{"text":"1934","image":null,"id":"5b6675625fb07631ed6b1467"},{"text":"1933","image":null,"id":"ca84f8ff70437f24a42883d7"},{"text":"1932","image":null,"id":"f942810ead94c109d8577eca"},{"text":"1931","image":null,"id":"bddf905f49758da95fe28f43"},{"text":"1930","image":null,"id":"67c732e01d470df619204315"}],"helperText":null,"stepId":"b012215666308047166e4c10","sortOrder":4,"validationRules":{"required":true}},"number_711537017295487":{"type":"Number","label":"Monthly Income","currencySymbol":"$","width":6,"stepId":"58addba23985225d50e4c170","sortOrder":2,"validationRules":{"required":true},"hideLabel":false,"wholeNumbersOnly":true,"helperText":"Most approvals require a minimum of $2,000/m for your income."},"single_select_337379072992224":{"type":"Single Select","width":6,"label":"Income Type","options":[{"text":"Employed","id":"8ad42f04600d51908c984043"},{"text":"Self-Employed","id":"e11aa2e457bb969669d378fe"},{"text":"Retired/Pension","id":"3820a0951407fd97127855b3"},{"text":"Other","image":null,"id":"c523a949a1c591cf6c36b6ea"}],"helperText":null,"stepId":"58addba23985225d50e4c170","sortOrder":3},"decorative_paragraph_921853480390538":{"type":"Decorative Paragraph","value":"How much do you earn?","width":12,"stepId":"58addba23985225d50e4c170","sortOrder":1},"zipcode_115277924438943":{"type":"Zipcode","label":"Postal Code","zipcodeFieldFormat":"postalcode_ca","width":6,"stepId":"6b99baeaf0e86b908ca3faea","sortOrder":3},"text_624243337341766":{"type":"Text","label":"Employer Name","width":6,"stepId":"58addba23985225d50e4c170","sortOrder":5,"validationRules":{"required":true}},"single_select_296675958827172":{"type":"Single Select","width":6,"label":"Time with Income","options":[{"text":"under 3 months","id":"c156e48700ba215e61ab279c"},{"text":"between 3 - 6 months","id":"67310527874471cfaeede439"},{"text":"between 6 - 12 months","id":"e8b5c8906d94b914ec8c8425"},{"text":"12+ months","image":null,"id":"645fed3f170711d048cf0d42"}],"helperText":null,"stepId":"58addba23985225d50e4c170","sortOrder":4,"validationRules":{"required":true}},"text_648173178846627":{"type":"Text","label":"Position or Title","width":12,"stepId":"58addba23985225d50e4c170","sortOrder":6},"single_select_27015754116250":{"type":"Single Select","width":6,"label":"Rent or Own?","options":[{"text":"Rent","id":"067df1122b3044a52e45c821"},{"text":"Own","id":"e73486b52f634a6f099e234e"},{"text":"Other","id":"3765d488b2678d6217d716c1"}],"helperText":null,"stepId":"6b99baeaf0e86b908ca3faea","sortOrder":6,"validationRules":{"required":true}},"number_308688084467814":{"type":"Number","label":"Monthly Payment","currencySymbol":"$","width":6,"stepId":"6b99baeaf0e86b908ca3faea","sortOrder":7,"validationRules":{"required":true}},"single_select_163097917851541":{"type":"Single Select","width":6,"label":"Time at Address","options":[{"text":"under 3 months","id":"067df1122b3044a52e45c821"},{"text":"between 3 - 6 months","id":"e73486b52f634a6f099e234e"},{"text":"between 6 - 12 months","id":"3765d488b2678d6217d716c1"},{"text":"over 12 months","image":null,"id":"a006728cc014e0434f93d906"}],"helperText":null,"stepId":"6b99baeaf0e86b908ca3faea","sortOrder":4,"validationRules":{"required":true}},"decorative_header_258318800829593":{"type":"Decorative Header","value":"We're excited to help you get riding! Take the next steps or wait for a call.","width":12,"stepId":"complete","sortOrder":2},"decorative_paragraph_160256759059512":{"type":"Decorative Paragraph","value":"To expedite your purchase, we encourage all buyers to upload their Provincial ID and Proof of Income which may be required for financing. If you have any questions, call Steven at (403) 483-8962 or email steven@summitpowersports.ca.","width":12,"stepId":"complete","sortOrder":3},"decorative_link_974419425529470":{"type":"Decorative Link","text":"Upload My Documents for Financing","url":"https://www.summitpowersports.ca/documents","openInNewTab":true,"width":12,"stepId":"complete","sortOrder":4},"decorative_link_204810903645038":{"type":"Decorative Link","text":"Upload My Trade-in","url":"https://www.summitpowersports.ca/trade-or-sell","openInNewTab":true,"width":12,"stepId":"complete","sortOrder":5},"hidden_435739988706081":{"type":"Hidden","hiddenFieldName":"[text_576692390099896]","width":12,"stepId":"c70d610288df03d719dc57e3","sortOrder":2}},"options":{"numberOfSteps":7,"dateFormat":"DD/MM/YYYY","progressBar":{"enable":true,"hideOnFirstStep":false},"continueButton":{"continueText":"Next Step","submitText":"Next Step","backText":"Go to previous step"},"customStyles":{"width":{"unit":"px","value":500},"parentContainerMinHeight":{"value":0,"unit":"px"},"parentBackgroundImage":{"imageInitialHeight":900,"imageInitialWidth":1800,"imageHeight":900,"imageWidth":1800,"imageUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1597394891/uploads/sbsnhuvt2wc0uyvwvgab.jpg"},"headerMarginTop":40,"parentBackgroundColor":"#ffffff","innerFormBackgroundColor":"#ffffff","innerFormBackgroundTransparency":"","primaryColor":"#ffe403","bodyTextColor":"#ffffff","parentContainerBackgroundType":"none","innerFormBackgroundType":"none","buttonBorderColor":"#ffe403","buttonColorSelected":"#f0faff","buttonBorderColorSelected":"#ffe403","footerMarginBottom":70,"errorColor":"#ff4e4e","buttonColor":"#F8F8F8","buttonTextColor":"#000000","inputLabelColor":" #a3a3a3","inputTextColor":"#000000","inputBackgroundColor":"#F8F8F8","continueButtonColor":"#ffe403","continueButtonTextColor":"#000000"},"localization":{"dateFormat":"MM/DD/YYYY"},"exportTransparentBackground":false,"customScript":"","actionOnSubmit":"redirect","customRedirectUrl":"https://www.dealerhop.com/app-done","sendCustomRedirectQueryParams":true,"customRedirectUrls":[{"url":"https://www.summitpowersports.ca/trade-or-sell","conditionalLogic":{"ruleBlocks":[{"sortOrder":0,"rules":[{"observedField":"buttons_302195021886034","operator":"selected_option","criteria":"fdf2fecc5ac0152b4556e761"}]}]}}]},"ownedByUser":"61c05065a8e73b0021b84962","personalisation":{"form_related_to":"(None - Start with a blank slate)"},"created":"2024-06-21T13:56:41.406Z","__v":0,"lastEdited":"2024-11-19T17:17:01.291Z","screenshotUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1742557231/growform-production/form-screenshots/667586994ad87c000bd84cad.png","leadsCount":34,"isActive":true},"accountIsActive":true,"accountIsFreeTrial":false}}; // ---- Utils ---- function safeJSONStringify(obj) { return JSON.stringify(obj) .replace(/<\/(script|style)/gi, '<\\/$1') .replace(//g, '--\\>') .replace(/\u2028/g, '\\u2028') .replace(/\u2029/g, '\\u2029'); } function preloadScript(href) { try { if (!href) return; if (document.querySelector('link[rel="preload"][href="' + href + '"]')) return; var l = document.createElement("link"); l.rel = "preload"; l.as = "script"; l.href = href; l.crossOrigin = ""; // allow cache reuse in iframe document.head.appendChild(l); } catch (_) {} } function parseQuery() { var out = {}; try { if (!window.location.search) return out; var usp = new URLSearchParams(window.location.search); usp.forEach(function (v, k) { out[k] = v; }); } catch (_) {} return out; } function buildIframeHTML(opts) { var html = '\n' + '\n' + '
\n' + ' \n' + ' \n' + ' \n' + '\n' + '\n' + ' \n' + ' \n' + '