(?:`)?(?:apple`public`source`license`version`2\.0`\-`august`6,`2003)?(?:`)?(?:`)?(?:please`read`this`license`carefully`before`downloading`this`software\.`by`downloading`or`using`this`software,`you`are`agreeing`to`be`bound`by`the`terms`of`this`license\.`if`you`do`not`or`cannot`agree`to`the`terms`of`this`license,`please`do`not`download`or`use`the`software\.`apple`note:`in`january`2007,`apple`changed`its`corporate`name`from`apple`computer,`inc\.`to`apple`inc\.`this`change`has`been`reflected`below`and`copyright`years`updated,`but`no`other`changes`have`been`made`to`the`apsl`2\.0\.)?(?:`)?(?:`)?(?:.{,20})(?:`)?general;`definitions\.`this`license`applies`to`any`program`or`other`work`which`apple`inc\.`\(`apple`\)`makes`publicly`available`and`which`contains`a`notice`placed`by`apple`identifying`such`program`or`work`as`original`code`and`stating`that`it`is`subject`to`the`terms`of`this`apple`public`source`license`version`2\.0`\(`license`\)\.`as`used`in`this`license:(?:`)?(?:.{,20})(?:`)?`applicable`patent`rights`mean:`\(a\)`in`the`case`where`apple`is`the`grantor`of`rights,`\(i\)`claims`of`patents`that`are`now`or`hereafter`acquired,`owned`by`or`assigned`to`apple`and`\(ii\)`that`cover`subject`matter`contained`in`the`original`code,`but`only`to`the`extent`necessary`to`use,`reproduce`and`or`distribute`the`original`code`without`infringement;`and`\(b\)`in`the`case`where`you`are`the`grantor`of`rights,`\(i\)`claims`of`patents`that`are`now`or`hereafter`acquired,`owned`by`or`assigned`to`you`and`\(ii\)`that`cover`subject`matter`in`your`modifications,`taken`alone`or`in`combination`with`original`code\.(?:`)?(?:.{,20})(?:`)?`contributor`means`any`person`or`entity`that`creates`or`contributes`to`the`creation`of`modifications\.(?:`)?(?:.{,20})(?:`)?`covered`code`means`the`original`code,`modifications,`the`combination`of`original`code`and`any`modifications,`and`or`any`respective`portions`thereof\.(?:`)?(?:.{,20})(?:`)?`externally`deploy`means:`\(a\)`to`sublicense,`distribute`or`otherwise`make`covered`code`available,`directly`or`indirectly,`to`anyone`other`than`you;`and`or`\(b\)`to`use`covered`code,`alone`or`as`part`of`a`larger`work,`in`any`way`to`provide`a`service,`including`but`not`limited`to`delivery`of`content,`through`electronic`communication`with`a`client`other`than`you\.(?:`)?(?:.{,20})(?:`)?`larger`work`means`a`work`which`combines`covered`code`or`portions`thereof`with`code`not`governed`by`the`terms`of`this`license\.(?:`)?(?:.{,20})(?:`)?`modifications`mean`any`addition`to,`deletion`from,`and`or`change`to,`the`substance`and`or`structure`of`the`original`code,`any`previous`modifications,`the`combination`of`original`code`and`any`previous`modifications,`and`or`any`respective`portions`thereof\.`when`code`is`released`as`a`series`of`files,`a`modification`is:`\(a\)`any`addition`to`or`deletion`from`the`contents`of`a`file`containing`covered`code;`and`or`\(b\)`any`new`file`or`other`representation`of`computer`program`statements`that`contains`any`part`of`covered`code\.(?:`)?(?:.{,20})(?:`)?`original`code`means`\(a\)`the`source`code`of`a`program`or`other`work`as`originally`made`available`by`apple`under`this`license,`including`the`source`code`of`any`updates`or`upgrades`to`such`programs`or`works`made`available`by`apple`under`this`license,`and`that`has`been`expressly`identified`by`apple`as`such`in`the`header`file\(s\)`of`such`work;`and`\(b\)`the`object`code`compiled`from`such`source`code`and`originally`made`available`by`apple`under`this`license(?:`)?(?:.{,20})(?:`)?`source`code`means`the`human`readable`form`of`a`program`or`other`work`that`is`suitable`for`making`modifications`to`it,`including`all`modules`it`contains,`plus`any`associated`interface`definition`files,`scripts`used`to`control`compilation`and`installation`of`an`executable`\(object`code\)\.(?:`)?(?:.{,20})(?:`)?`you`or`your`means`an`individual`or`a`legal`entity`exercising`rights`under`this`license\.`for`legal`entities,`you`or`your`includes`any`entity`which`controls,`is`controlled`by,`or`is`under`common`control`with,`you,`where`control`means`\(a\)`the`power,`direct`or`indirect,`to`cause`the`direction`or`management`of`such`entity,`whether`by`contract`or`otherwise,`or`\(b\)`ownership`of`fifty`percent`\(50%\)`or`more`of`the`outstanding`shares`or`beneficial`ownership`of`such`entity\.(?:`)?(?:.{,20})(?:`)?permitted`uses;`conditions`\&`restrictions\.`subject`to`the`terms`and`conditions`of`this`license,`apple`hereby`grants`you,`effective`on`the`date`you`accept`this`license`and`download`the`original`code,`a`world\-`wide,`royalty\-`free,`non\-`exclusive`license,`to`the`extent`of`apple`s`applicable`patent`rights`and`copyrights`covering`the`original`code,`to`do`the`following:(?:`)?(?:.{,20})(?:`)?unmodified`code\.`you`may`use,`reproduce,`display,`perform,`internally`distribute`within`your`organization,`and`externally`deploy`verbatim,`unmodified`copies`of`the`original`code,`for`commercial`or`noncommercial`purposes,`provided`that`in`each`instance:(?:`)?(?:.{,20})(?:`)?you`must`retain`and`reproduce`in`all`copies`of`original`code`the`copyright`and`other`proprietary`notices`and`disclaimers`of`apple`as`they`appear`in`the`original`code,`and`keep`intact`all`notices`in`the`original`code`that`refer`to`this`license;`and(?:`)?(?:.{,20})(?:`)?you`must`include`a`copy`of`this`license`with`every`copy`of`source`code`of`covered`code`and`documentation`you`distribute`or`externally`deploy,`and`you`may`not`offer`or`impose`any`terms`on`such`source`code`that`alter`or`restrict`this`license`or`the`recipients`rights`hereunder,`except`as`permitted`under`section`6\.(?:`)?(?:.{,20})(?:`)?modified`code\.`you`may`modify`covered`code`and`use,`reproduce,`display,`perform,`internally`distribute`within`your`organization,`and`externally`deploy`your`modifications`and`covered`code,`for`commercial`or`noncommercial`purposes,`provided`that`in`each`instance`you`also`meet`all`of`these`conditions:(?:`)?(?:.{,20})(?:`)?you`must`satisfy`all`the`conditions`of`section`2\.1`with`respect`to`the`source`code`of`the`covered`code;(?:`)?(?:.{,20})(?:`)?you`must`duplicate,`to`the`extent`it`does`not`already`exist,`the`notice`in`exhibit`a`in`each`file`of`the`source`code`of`all`your`modifications,`and`cause`the`modified`files`to`carry`prominent`notices`stating`that`you`changed`the`files`and`the`date`of`any`change;`and(?:`)?(?:.{,20})(?:`)?if`you`externally`deploy`your`modifications,`you`must`make`source`code`of`all`your`externally`deployed`modifications`either`available`to`those`to`whom`you`have`externally`deployed`your`modifications,`or`publicly`available\.`source`code`of`your`externally`deployed`modifications`must`be`released`under`the`terms`set`forth`in`this`license,`including`the`license`grants`set`forth`in`section`3`below,`for`as`long`as`you`externally`deploy`the`covered`code`or`twelve`\(12\)`months`from`the`date`of`initial`external`deployment,`whichever`is`longer\.`you`should`preferably`distribute`the`source`code`of`your`externally`deployed`modifications`electronically`\(e\.`g\.`download`from`a`web`site\)\.(?:`)?(?:.{,20})(?:`)?distribution`of`executable`versions\.`in`addition,`if`you`externally`deploy`covered`code`\(original`code`and`or`modifications\)`in`object`code,`executable`form`only,`you`must`include`a`prominent`notice,`in`the`code`itself`as`well`as`in`related`documentation,`stating`that`source`code`of`the`covered`code`is`available`under`the`terms`of`this`license`with`information`on`how`and`where`to`obtain`such`source`code\.(?:`)?(?:.{,20})(?:`)?third`party`rights\.`you`expressly`acknowledge`and`agree`that`although`apple`and`each`contributor`grants`the`licenses`to`their`respective`portions`of`the`covered`code`set`forth`herein,`no`assurances`are`provided`by`apple`or`any`contributor`that`the`covered`code`does`not`infringe`the`patent`or`other`intellectual`property`rights`of`any`other`entity\.`apple`and`each`contributor`disclaim`any`liability`to`you`for`claims`brought`by`any`other`entity`based`on`infringement`of`intellectual`property`rights`or`otherwise\.`as`a`condition`to`exercising`the`rights`and`licenses`granted`hereunder,`you`hereby`assume`sole`responsibility`to`secure`any`other`intellectual`property`rights`needed,`if`any\.`for`example,`if`a`third`party`patent`license`is`required`to`allow`you`to`distribute`the`covered`code,`it`is`your`responsibility`to`acquire`that`license`before`distributing`the`covered`code\.(?:`)?(?:.{,20})(?:`)?your`grants\.`in`consideration`of,`and`as`a`condition`to,`the`licenses`granted`to`you`under`this`license,`you`hereby`grant`to`any`person`or`entity`receiving`or`distributing`covered`code`under`this`license`a`non\-`exclusive,`royalty\-`free,`perpetual,`irrevocable`license,`under`your`applicable`patent`rights`and`other`intellectual`property`rights`\(other`than`patent\)`owned`or`controlled`by`you,`to`use,`reproduce,`display,`perform,`modify,`sublicense,`distribute`and`externally`deploy`your`modifications`of`the`same`scope`and`extent`as`apple`s`licenses`under`sections`2\.1`and`2\.2`above\.(?:`)?(?:.{,20})(?:`)?larger`works\.`you`may`create`a`larger`work`by`combining`covered`code`with`other`code`not`governed`by`the`terms`of`this`license`and`distribute`the`larger`work`as`a`single`product\.`in`each`such`instance,`you`must`make`sure`the`requirements`of`this`license`are`fulfillled`for`the`covered`code`or`any`portion`thereof\.(?:`)?(?:.{,20})(?:`)?limitations`on`patent`license\.`except`as`expressly`stated`in`section`2,`no`other`patent`rights,`express`or`implied,`are`granted`by`apple`herein\.`modifications`and`or`larger`works`may`require`additional`patent`licenses`from`apple`which`apple`may`grant`in`its`sole`discretion\.(?:`)?(?:.{,20})(?:`)?additional`terms\.`you`may`choose`to`offer,`and`to`charge`a`fee`for,`warranty,`support,`indemnity`or`liability`obligations`and`or`other`rights`consistent`with`the`scope`of`the`license`granted`herein`\(`additional`terms`\)`to`one`or`more`recipients`of`covered`code\.`however,`you`may`do`so`only`on`your`own`behalf`and`as`your`sole`responsibility,`and`not`on`behalf`of`apple`or`any`contributor\.`you`must`obtain`the`recipient`s`agreement`that`any`such`additional`terms`are`offered`by`you`alone,`and`you`hereby`agree`to`indemnify,`defend`and`hold`apple`and`every`contributor`harmless`for`any`liability`incurred`by`or`claims`asserted`against`apple`or`such`contributor`by`reason`of`any`such`additional`terms\.(?:`)?(?:.{,20})(?:`)?versions`of`the`license\.`apple`may`publish`revised`and`or`new`versions`of`this`license`from`time`to`time\.`each`version`will`be`given`a`distinguishing`version`number\.`once`original`code`has`been`published`under`a`particular`version`of`this`license,`you`may`continue`to`use`it`under`the`terms`of`that`version\.`you`may`also`choose`to`use`such`original`code`under`the`terms`of`any`subsequent`version`of`this`license`published`by`apple\.`no`one`other`than`apple`has`the`right`to`modify`the`terms`applicable`to`covered`code`created`under`this`license\.(?:`)?(?:.{,20})(?:`)?no`warranty`or`support\.`the`covered`code`may`contain`in`whole`or`in`part`pre\-`release,`untested,`or`not`fully`tested`works\.`the`covered`code`may`contain`errors`that`could`cause`failures`or`loss`of`data,`and`may`be`incomplete`or`contain`inaccuracies\.`you`expressly`acknowledge`and`agree`that`use`of`the`covered`code,`or`any`portion`thereof,`is`at`your`sole`and`entire`risk\.`the`covered`code`is`provided`as`is`and`without`warranty,`upgrades`or`support`of`any`kind`and`apple`and`apple`s`licensor\(s\)`\(collectively`referred`to`as`apple`for`the`purposes`of`sections`8`and`9\)`and`all`contributors`expressly`disclaim`all`warranties`and`or`conditions,`express`or`implied,`including,`but`not`limited`to,`the`implied`warranties`and`or`conditions`of`merchantability,`of`satisfactory`quality,`of`fitness`for`a`particular`purpose,`of`accuracy,`of`quiet`enjoyment,`and`noninfringement`of`third`party`rights\.`apple`and`each`contributor`does`not`warrant`against`interference`with`your`enjoyment`of`the`covered`code,`that`the`functions`contained`in`the`covered`code`will`meet`your`requirements,`that`the`operation`of`the`covered`code`will`be`uninterrupted`or`error\-`free,`or`that`defects`in`the`covered`code`will`be`corrected\.`no`oral`or`written`information`or`advice`given`by`apple,`an`apple`authorized`representative`or`any`contributor`shall`create`a`warranty\.`you`acknowledge`that`the`covered`code`is`not`intended`for`use`in`the`operation`of`nuclear`facilities,`aircraft`navigation,`communication`systems,`or`air`traffic`control`machines`in`which`case`the`failure`of`the`covered`code`could`lead`to`death,`personal`injury,`or`severe`physical`or`environmental`damage\.(?:`)?(?:.{,20})(?:`)?limitation`of`liability\.`to`the`extent`not`prohibited`by`law,`in`no`event`shall`apple`or`any`contributor`be`liable`for`any`incidental,`special,`indirect`or`consequential`damages`arising`out`of`or`relating`to`this`license`or`your`use`or`inability`to`use`the`covered`code,`or`any`portion`thereof,`whether`under`a`theory`of`contract,`warranty,`tort`\(including`negligence\),`products`liability`or`otherwise,`even`if`apple`or`such`contributor`has`been`advised`of`the`possibility`of`such`damages`and`notwithstanding`the`failure`of`essential`purpose`of`any`remedy\.`some`jurisdictions`do`not`allow`the`limitation`of`liability`of`incidental`or`consequential`damages,`so`this`limitation`may`not`apply`to`you\.`in`no`event`shall`apple`s`total`liability`to`you`for`all`damages`\(other`than`as`may`be`required`by`applicable`law\)`under`this`license`exceed`the`amount`of`fifty`dollars`\(\$50\.00\)\.(?:`)?(?:.{,20})(?:`)?trademarks\.`this`license`does`not`grant`any`rights`to`use`the`trademarks`or`trade`names`apple`,`mac`,`mac`os`,`quicktime`,`quicktime`streaming`server`or`any`other`trademarks,`service`marks,`logos`or`trade`names`belonging`to`apple`\(collectively`apple`marks`\)`or`to`any`trademark,`service`mark,`logo`or`trade`name`belonging`to`any`contributor\.`you`agree`not`to`use`any`apple`marks`in`or`as`part`of`the`name`of`products`derived`from`the`original`code`or`to`endorse`or`promote`products`derived`from`the`original`code`other`than`as`expressly`permitted`by`and`in`strict`compliance`at`all`times`with`apple`s`third`party`trademark`usage`guidelines`which`are`posted`at`http:`www\.`apple\.`com`legal`guidelinesfor3rdparties\.`html\.(?:`)?(?:.{,20})(?:`)?ownership\.`subject`to`the`licenses`granted`under`this`license,`each`contributor`retains`all`rights,`title`and`interest`in`and`to`any`modifications`made`by`such`contributor\.`apple`retains`all`rights,`title`and`interest`in`and`to`the`original`code`and`any`modifications`made`by`or`on`behalf`of`apple`\(`apple`modifications`\),`and`such`apple`modifications`will`not`be`automatically`subject`to`this`license\.`apple`may,`at`its`sole`discretion,`choose`to`license`such`apple`modifications`under`this`license,`or`on`different`terms`from`those`contained`in`this`license`or`may`choose`not`to`license`them`at`all\.(?:`)?(?:.{,20})(?:`)?termination\.(?:`)?(?:.{,20})(?:`)?termination\.`this`license`and`the`rights`granted`hereunder`will`terminate:(?:`)?(?:.{,20})(?:`)?automatically`without`notice`from`apple`if`you`fail`to`comply`with`any`term\(s\)`of`this`license`and`fail`to`cure`such`breach`within`30`days`of`becoming`aware`of`such`breach;(?:`)?(?:.{,20})(?:`)?immediately`in`the`event`of`the`circumstances`described`in`section`13\.5\(b\);`or(?:`)?(?:.{,20})(?:`)?automatically`without`notice`from`apple`if`you,`at`any`time`during`the`term`of`this`license,`commence`an`action`for`patent`infringement`against`apple;`provided`that`apple`did`not`first`commence`an`action`for`patent`infringement`against`you`in`that`instance\.(?:`)?(?:.{,20})(?:`)?effect`of`termination\.`upon`termination,`you`agree`to`immediately`stop`any`further`use,`reproduction,`modification,`sublicensing`and`distribution`of`the`covered`code\.`all`sublicenses`to`the`covered`code`which`have`been`properly`granted`prior`to`termination`shall`survive`any`termination`of`this`license\.`provisions`which,`by`their`nature,`should`remain`in`effect`beyond`the`termination`of`this`license`shall`survive,`including`but`not`limited`to`sections`3,`5,`8,`9,`10,`11,`12\.2`and`13\.`no`party`will`be`liable`to`any`other`for`compensation,`indemnity`or`damages`of`any`sort`solely`as`a`result`of`terminating`this`license`in`accordance`with`its`terms,`and`termination`of`this`license`will`be`without`prejudice`to`any`other`right`or`remedy`of`any`party\.(?:`)?(?:.{,20})(?:`)?miscellaneous\.(?:`)?(?:.{,20})(?:`)?government`end`users\.`the`covered`code`is`a`commercial`item`as`defined`in`far`2\.101\.`government`software`and`technical`data`rights`in`the`covered`code`include`only`those`rights`customarily`provided`to`the`public`as`defined`in`this`license\.`this`customary`commercial`license`in`technical`data`and`software`is`provided`in`accordance`with`far`12\.211`\(technical`data\)`and`12\.212`\(computer`software\)`and,`for`department`of`defense`purchases,`dfar`252\.227\-7015`\(technical`data`\-`commercial`items\)`and`227\.7202\-3`\(rights`in`commercial`computer`software`or`computer`software`documentation\)\.`accordingly,`all`u\.`s\.`government`end`users`acquire`covered`code`with`only`those`rights`set`forth`herein\.(?:`)?(?:.{,20})(?:`)?relationship`of`parties\.`this`license`will`not`be`construed`as`creating`an`agency,`partnership,`joint`venture`or`any`other`form`of`legal`association`between`or`among`you,`apple`or`any`contributor,`and`you`will`not`represent`to`the`contrary,`whether`expressly,`by`implication,`appearance`or`otherwise\.(?:`)?(?:.{,20})(?:`)?independent`development\.`nothing`in`this`license`will`impair`apple`s`right`to`acquire,`license,`develop,`have`others`develop`for`it,`market`and`or`distribute`technology`or`products`that`perform`the`same`or`similar`functions`as,`or`otherwise`compete`with,`modifications,`larger`works,`technology`or`products`that`you`may`develop,`produce,`market`or`distribute\.(?:`)?(?:.{,20})(?:`)?waiver;`construction\.`failure`by`apple`or`any`contributor`to`enforce`any`provision`of`this`license`will`not`be`deemed`a`waiver`of`future`enforcement`of`that`or`any`other`provision\.`any`law`or`regulation`which`provides`that`the`language`of`a`contract`shall`be`construed`against`the`drafter`will`not`apply`to`this`license\.(?:`)?(?:.{,20})(?:`)?severability\.`\(a\)`if`for`any`reason`a`court`of`competent`jurisdiction`finds`any`provision`of`this`license,`or`portion`thereof,`to`be`unenforceable,`that`provision`of`the`license`will`be`enforced`to`the`maximum`extent`permissible`so`as`to`effect`the`economic`benefits`and`intent`of`the`parties,`and`the`remainder`of`this`license`will`continue`in`full`force`and`effect\.`\(b\)`notwithstanding`the`foregoing,`if`applicable`law`prohibits`or`restricts`you`from`fully`and`or`specifically`complying`with`sections`2`and`or`3`or`prevents`the`enforceability`of`either`of`those`sections,`this`license`will`immediately`terminate`and`you`must`immediately`discontinue`any`use`of`the`covered`code`and`destroy`all`copies`of`it`that`are`in`your`possession`or`control\.(?:`)?(?:.{,20})(?:`)?dispute`resolution\.`any`litigation`or`other`dispute`resolution`between`you`and`apple`relating`to`this`license`shall`take`place`in`the`northern`district`of`california,`and`you`and`apple`hereby`consent`to`the`personal`jurisdiction`of,`and`venue`in,`the`state`and`federal`courts`within`that`district`with`respect`to`this`license\.`the`application`of`the`united`nations`convention`on`contracts`for`the`international`sale`of`goods`is`expressly`excluded\.(?:`)?(?:.{,20})(?:`)?`entire`agreement;`governing`law\.`this`license`constitutes`the`entire`agreement`between`the`parties`with`respect`to`the`subject`matter`hereof\.`this`license`shall`be`governed`by`the`laws`of`the`united`states`and`the`state`of`california,`except`that`body`of`california`law`concerning`conflicts`of`law\.`where`you`are`located`in`the`province`of`quebec,`canada,`the`following`clause`applies:`the`parties`hereby`confirm`that`they`have`requested`that`this`license`and`all`related`documents`be`drafted`in`english\.`les`parties`ont`exigé`que`le`présent`contrat`et`tous`les`documents`connexes`soient`rédigés`en`anglais\.(?:`)?(?:exhibit`a\.`portions`copyright`\(c\)`1999\-2007`apple`inc\.`all`rights`reserved\.`this`file`contains`original`code`and`or`modifications`of`original`code`as`defined`in`and`that`are`subject`to`the`apple`public`source`license`version`2\.0`\(the`license`\)\.`you`may`not`use`this`file`except`in`compliance`with`the`license\.`please`obtain`a`copy`of`the`license`at`http:`www\.`opensource\.`apple\.`com`apsl`and`read`it`before`using`this`file\.`the`original`code`and`all`software`distributed`under`the`license`are`distributed`on`an`as`is`basis,`without`warranty`of`any`kind,`either`express`or`implied,`and`apple`hereby`disclaims`all`such`warranties,`including`without`limitation,`any`warranties`of`merchantability,`fitness`for`a`particular`purpose,`quiet`enjoyment`or`non\-`infringement\.`please`see`the`license`for`the`specific`language`governing`rights`and`limitations`under`the`license\.`)?(?:`)?